PHP code example of lihuababa / shaanxi-network-freight

1. Go to this page and download the library: Download lihuababa/shaanxi-network-freight library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lihuababa / shaanxi-network-freight example snippets


composer 

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

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


NETWORK_FREIGHT_ENV=dev