library shipment-tracking-kuaidi100
A flexible and shipment tracking library for Kuaidi100.
slince/shipment-tracking-kuaidi100
A flexible and shipment tracking library for Kuaidi100.
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 2 Versions
- 89 % Grown
快递100物流信息查询
, (*1)
快递100物流信息查询库, (*2)
Installation
Install via composer, (*3)
$ composer require slince/shipment-tracking-kuaidi100
Basic Usage
$tracker = new Slince\ShipmentTracking\KuaiDi100\KuaiDi100Tracker(APPKEY, 'shunfeng'); //承运商名称并不是标准的承运商代码,实际承运商代码请到kuaidi100.com查看
try {
$shipment = $tracker->track('CNAQV100168101');
if ($shipment->isDelivered()) {
echo "Delivered";
}
print_r($shipment->getEvents()); //print the shipment events
} catch (Slince\ShipmentTracking\Exception\TrackException $exception) {
exit('Track error: ' . $exception->getMessage());
}
快递100的key需要自行申请,免费版的key在查询申通顺丰之类的单号时会受限,需要企业版才可以;附上快递100文档, (*4)
License
The MIT license. See MIT, (*5)
dev-master
9999999-dev
A flexible and shipment tracking library for Kuaidi100.
Sources
Download
MIT
The Requires
The Development Requires
by
tao
tracking
tracker
shipment
parcel
快递100
1.0.0
1.0.0.0
A flexible and shipment tracking library for Kuaidi100.
Sources
Download
MIT
The Requires
The Development Requires
by
tao
tracking
tracker
shipment
parcel
快递100