PHP code example of dh2y / think-query-express

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

    

dh2y / think-query-express example snippets


 将config/express.php 复制到配置目录里面即可
 
 1、如果获取快递公司是编码,请在配置里面添加编码对应的快递贵公司
 

       array(6) {
         ["data"] => array(16) {
           [0] => array(4) {
             ["time"] => string(19) "2018-09-27 07:52:40"
             ["ftime"] => string(19) "2018-09-27 07:52:40"
             ["context"] => string(50) "陕西镇坪县公司-已发往-陕西安康公司"
             ["location"] => string(0) ""
           }
           [1] => array(4) {
             ["time"] => string(19) "2018-09-26 20:19:12"
             ["ftime"] => string(19) "2018-09-26 20:19:12"
             ["context"] => string(79) "陕西镇坪县公司-陕西镇坪县公司(15591577188,0915-8287888)-已收件"
             ["location"] => string(0) ""
           }
         }
         ["type"] => string(8) "shentong"
         ["name"] => string(12) "申通快递"
         ["num"] => string(12) "221401186231"
         ["state"] => string(1) "3"
         ["ret"] => string(9) "已签收"
       }