slince / shipment-tracking-ems
适用于E邮宝、E包裹、E特快、国际EMS的灵活的货运跟踪库。
1.0.0
2017-08-07 06:58 UTC
Requires
- php: >=5.6.0
- slince/shipment-tracking: ^1.0
Requires (Dev)
- phpunit/phpunit: ^5.0|^6.0
This package is not auto-updated.
Last update: 2024-09-15 04:26:17 UTC
README
中国邮政包裹物流信息查询,适用于产品E邮宝、E包裹、E特快、国际EMS
安装
通过composer安装
$ composer require slince/shipment-tracking-ems
基本用法
$tracker = new Slince\ShipmentTracking\EMS\EMSTracker(AUTHENTICATE, 'en'); try { $shipment = $tracker->track('CNAQV100168101'); print_r($shipment->getEvents()); //print the shipment events } catch (Slince\ShipmentTracking\Exception\TrackException $exception) { exit('Track error: ' . $exception->getMessage()); }
注意:该库不支持查询国内EMS包裹信息,相关文档主页http://shipping.ems.com.cn/apiIndex
许可证
MIT许可证。见MIT