PHP code example of indeximstudio / shipengine

1. Go to this page and download the library: Download indeximstudio/shipengine 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/ */

    

indeximstudio / shipengine example snippets


 declare(strict_types=1);

piKey = getenv('SHIPENGINE_API_KEY');

$shipengine = new ShipEngine($apiKey);

 declare(strict_types=1);

piKey = getenv('SHIPENGINE_API_KEY');

$config = array(
    'apiKey' => $apiKey,
    'pageSize' => 75,
    'retries' => 3,
    'timeout' => \DateInterval('PT60S')
);

$shipengine = new ShipEngine($config);