soerbv / shipsgo
A PHP Client for ShipsGo API
Installs: 2 232
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=8.0.0
- ext-curl: *
- ext-json: *
README
PHP Client for the ShipsGo API
Install via composer:
composer require soerbv/shipsgo
Usage:
Set client:
$client = new Client($authCode);
Create a tracking request with BL:
$client->createTrackingWithBl('CONTAINER_NUMBER', 'SHIPPING_LINE', 'EMAIL_ADDRESS', 'REFERENCE_NO', 'BL_CONTAINERS_REF');
Create a tracking request with Container Number:
$client->createTrackingWithContainerNumber('CONTAINER_NUMBER', 'SHIPPING_LINE', 'EMAIL_ADDRESS', 'REFERENCE_NO');
Get Voyage Data:
$data = $client->getVoyageData('CONTAINER_NUMBER'); print_r(json_decode($data));
Endpoints
The following endpoints are supported:
- PostCustomContainerFormWithBl
- PostCustomContainerForm
- GetContainerInfo