PHP code example of soerbv / shipsgo

1. Go to this page and download the library: Download soerbv/shipsgo library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

soerbv / shipsgo example snippets


$client = new Client($authCode);

$client->createTrackingWithBl('CONTAINER_NUMBER', 'SHIPPING_LINE', 'EMAIL_ADDRESS', 'REFERENCE_NO', 'BL_CONTAINERS_REF');

$client->createTrackingWithContainerNumber('CONTAINER_NUMBER', 'SHIPPING_LINE', 'EMAIL_ADDRESS', 'REFERENCE_NO');

$data = $client->getVoyageData('CONTAINER_NUMBER');
print_r(json_decode($data));