A package to easily track the status of you parcel. With support for multiple providers (BPost, PostNL and DHL). A provider can be added by creating an adapter for the new provider.
You can install the package via composer:
composer require libaro/shipmenttrackerYou can publish the config file with:
php artisan vendor:publish --tag="shipment-tracker"This is the contents of the published config file:
return [
'providers' => [
[
'name' => 'bpost',
'label' => 'BPost',
'adapter' => \Libaro\ShipmentTracker\Adapters\BPostAdapter::class,
'barcode_tags' => [3232],
'credentials' => [
'username' => env('SHIPMENT_TRACKER_BPOST_USERNAME'),
'password' => env('SHIPMENT_TRACKER_BPOST_PASSWORD'),
],
],
[
'name' => 'post_nl',
'label' => 'PostNL',
'adapter' => \Libaro\ShipmentTracker\Adapters\PostNLAdapter::class,
'barcode_tags' => ['3S', 'CD'],
'credentials' => [
],
],
[
'name' => 'dhl',
'label' => 'DHL',
'adapter' => \Libaro\ShipmentTracker\Adapters\DhlAdapter::class,
'barcode_tags' => [],
'credentials' => [
'api_key' => env('SHIPMENT_TRACKER_DHL_API_KEY'),
'api_secret' => env('SHIPMENT_TRACKER_DHL_API_SECRET')
],
],
],
];You can use the Shipment facade to track your parcel.
Shipment::track('5995390550944994')composer testPlease see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.