Skip to content

A flexible and shipment tracking library for Yanwen Express(燕文物流)

Notifications You must be signed in to change notification settings

slince-archived/shipment-tracking-yanwen-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shipment Tracking Library For Yanwen Express

Build Status Coverage Status Latest Stable Version Scrutinizer

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

About

A flexible and shipment tracking library for Yanwen Express(燕文物流)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages