PHP code example of harriescc / kdniao

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

    

harriescc / kdniao example snippets


       Harries\KDNiao\KDNiao::expresses();
    

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

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

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