soerbv/shipsgo

A PHP Client for ShipsGo API

v1.0.0 2023-02-09 13:27 UTC

This package is auto-updated.

Last update: 2024-10-09 18:28:21 UTC


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