1. Go to this page and download the library: Download yihaitao/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/ */
yihaitao / express example snippets
use YiHaiTao\Express\Express100;
$express = new Express100('app_id','app_key');
$info = $express->track($trackingCode, $shippingCode, $phone); //快递单号 物流公司编号 收件人手机号(顺丰必填 其他快递选填)
use YiHaiTao\Express\ExpressBird;
$express = new ExpressBird('app_id','app_key');
$info = $express->track($trackingCode, $shippingCode, $phone, $orderCode, $requestType = '8002'); //快递单号 物流公司编号 手机号 订单编号(选填) 请求类型