1. Go to this page and download the library: Download careywong/logistics 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/ */
careywong / logistics example snippets
use CareyWong\Logistics\Logistics;
$logistics = new Logistics();
$service = $logistics->getInstance('KDNiao');
$service->setConfig($EBusinessID, $AppKey);
# 获取快递单所属快递公司信息
$service->getShipper($trackingNumber);
# 获取快递轨迹
$service->getTrace($shipmentId, $trackingNumber);
use CareyWong\Logistics\Logistics;
$logistics = new Logistics();
$service = $logistics->getInstance('Trackingmore');
$service->setConfig($ApiKey);
# 获取快递单所属快递公司信息
$service->getShipper($trackingNumber);
# 获取快递轨迹
$service->getTrace($shipmentId, $trackingNumber);