/delivery-tracking

A framework agnostic delivery tracking library for PHP 5.4+

Primary LanguagePHPMIT LicenseMIT

Delivery Tracking

Software License

SensioLabsInsight

This is a framework agnostic delivery tracking library for PHP 5.4+. It uses the Adapter design pattern to provide a unified api over delivery services, and a common list of delivery statuses. This library respects PSR-1, PSR-2, and PSR-4.

Install

Via Composer

$ composer require cospirit/delivery-tracking

Usage

$chronopostAdapter = new ChronopostAdapter();
$deliveryTracking = new DeliveryTracking($chronopostAdapter);

$status = $deliveryTracking->getDeliveryStatus('tracking-number');

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please use the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.