TrackingMore Driver
This is a driver for the TrackingMore API. Check out the repository on GitHub for more information.
Installation
First, install the TrackingMore driver via the Composer package manager:
shell
composer require parceltrap/driver-trackingmore
composer require parceltrap/driver-trackingmore
Configuration
In your config/parceltrap.php
configuration file, add the following to the drivers
key:
php
'trackingmore' => [
'api_key' => env('PARCELTRAP_TRACKINGMORE_API_KEY'),
],
'trackingmore' => [
'api_key' => env('PARCELTRAP_TRACKINGMORE_API_KEY'),
],
You can get these details by registering for the TrackingMore API. To find out more, visit the Tracking API reference. This documentation page also shows the raw TrackingMore-specific data that can be found in the returned TrackingDetails
DTO.
Usage
php
$driver = \ParcelTrap\Facades\ParcelTrap::driver('trackingmore');
$driver->find('UB209300714LV'); // ParcelTrap\DTOs\TrackingDetails
$driver = \ParcelTrap\Facades\ParcelTrap::driver('trackingmore');
$driver->find('UB209300714LV'); // ParcelTrap\DTOs\TrackingDetails