Giter Site home page Giter Site logo

shaanxi-network-freight's Introduction

陕西省网络货运省厅接口对接laravel扩展包

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

介绍

shaanxi-network-freight 是陕西省网络货运监管平台的一个SDK,在官方只有JAVA的SDK,而PHP中的加密方式与JAVA不同导致上传不成功,为了解决此问题,自己写了个SDK,如有任何问题请发送邮件至[email protected]

要求

  • php版本:>=7.2
  • laravel版本: Laravel6+

安装

composer require lihuababa/shaanxi-network-freight

在非laravel项目中使用

// 上报司机
app(NetworkFreightService::class)->reportDriver([
    具体字段请以陕西省监管平台的文档为准
]);
// 上报车辆
app(NetworkFreightService::class)->reportVehicle([
    具体字段请以陕西省监管平台的文档为准
]);
// 上报资金流水
app(NetworkFreightService::class)->reportCapitalFlow([
    具体字段请以陕西省监管平台的文档为准
]);
// 上报资金流水
app(NetworkFreightService::class)->reportTransport([
    具体字段请以陕西省监管平台的文档为准
]);

在laravel项目中使用

安装成功后执行

php artisan vendor:publish --provider="ShaanXiNetworkFreight\NetworkFreightServiceProvider"

会自动将networkFreight.php添加到您项目的配置文件当中

相关配置

环境变量

默认环境变量为production

NETWORK_FREIGHT_ENV=dev

shaanxi-network-freight's People

Contributors

lihuaba avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.