Soer-BV / ShipsGo

PHP Client Wrapper for the ShipsGo API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

PHP Client Wrapper for the ShipsGo API

License:MIT License


Languages

Language:PHP 100.0%