PHP code example of dzer / express

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

    

dzer / express example snippets




use dzer\express\Express;

//Express::search('快递单号','快递公司代码(可空)','返回格式(可空)');
$rs = Express::search('807209844896');

{
  "nu": "807209844896",
  "message": "ok",
  "ischeck": "0",
  "com": "yuantong",
  "updatetime": "2016-06-17 11:00:56",
  "status": "200",
  "condition": "H100",
  "data": [
    {
      "time": "2016-06-17 08:37:12",
      "context": "重庆市渝北区四部公司(点击查询电话)郭** 派件中 派件员电话13637819857",
      "ftime": "2016-06-17 08:37:12"
    },
    {
      "time": "2016-06-17 05:08:02",
      "context": "重庆市渝北区四部公司 已收入",
      "ftime": "2016-06-17 05:08:02"
    },
    {
      "time": "2016-06-17 04:18:37",
      "context": "重庆转运中心 已发出,下一站 重庆市渝北区四部",
      "ftime": "2016-06-17 04:18:37"
    },
    {
      "time": "2016-06-17 03:30:19",
      "context": "重庆转运中心 已收入",
      "ftime": "2016-06-17 03:30:19"
    },
    {
      "time": "2016-06-15 22:06:50",
      "context": "杭州转运中心 已发出,下一站 重庆转运中心",
      "ftime": "2016-06-15 22:06:50"
    },
    {
      "time": "2016-06-15 22:05:03",
      "context": "杭州转运中心 已收入",
      "ftime": "2016-06-15 22:05:03"
    },
    {
      "time": "2016-06-15 18:18:18",
      "context": "浙江省杭州市萧山中部公司 已发出,下一站 杭州转运中心",
      "ftime": "2016-06-15 18:18:18"
    },
    {
      "time": "2016-06-15 17:52:08",
      "context": "浙江省杭州市萧山中部公司 已打包",
      "ftime": "2016-06-15 17:52:08"
    },
    {
      "time": "2016-06-15 17:52:08",
      "context": "浙江省杭州市萧山中部公司(点击查询电话) 已揽收",
      "ftime": "2016-06-15 17:52:08"
    },
    {
      "time": "2016-06-15 11:18:02",
      "context": "浙江省杭州市萧山中部公司 取件人: 王棕元 已收件",
      "ftime": "2016-06-15 11:18:02"
    }
  ],
  "state": "5"
}