Skip to content

Soer-BV/ShipsGo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

774cc3c · Feb 9, 2023

History

14 Commits
Feb 9, 2023
Feb 9, 2023
Feb 9, 2023
Feb 9, 2023
Feb 9, 2023

Repository files navigation

ShipsGo

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