slince/shipment-tracking-yanwen-express
Composer 安装命令:
composer require slince/shipment-tracking-yanwen-express
包简介
A flexible and shipment tracking library for Yanwen Express.
README 文档
README
A flexible and shipment tracking library for Yanwen Express(燕文物流).
Installation
Install via composer
$ composer require slince/shipment-tracking-yanwen-express
Basic Usage
$tracker = new Slince\ShipmentTracking\YanWenExpress\YanWenTracker(KEY, 'en'); try { $shipment = $tracker->track('CNAQV100168101'); if ($shipment->isDelivered()) { echo "Delivered"; } echo $shipment->getOrigin(); echo $shipment->getDestination(); print_r($shipment->getEvents()); //print the shipment events } catch (Slince\ShipmentTracking\Exception\TrackException $exception) { exit('Track error: ' . $exception->getMessage()); }
License
The MIT license. See MIT
统计信息
- 总下载量: 29
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-07-27