PHP code example of sobyte / kdniao

1. Go to this page and download the library: Download sobyte/kdniao 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/ */

    

sobyte / kdniao example snippets


       Sobyte\KDNiao\KDNiao::expresses();
    

       $code = 'SF';
       Sobyte\KDNiao\KDNiao::getExpressByCode($code);
    

       $orderSn = '业务订单号';
       $expressCode = '物流公司编码';
       $orderSn = '物流单号';
       Sobyte\KDNiao\KDNiao::subExpressInfo($orderSn, $expressCode, $expressSn);
    

       $orderSn = '业务订单号';
       $expressCode = '物流公司编码';
       $orderSn = '物流单号';
       Sobyte\KDNiao\KDNiao::queryExpressInfo($orderSn, $expressCode, $expressSn);