PHP code example of kayooliveira / shipment-sdk-php
1. Go to this page and download the library: Download kayooliveira/shipment-sdk-php 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/ */
kayooliveira / shipment-sdk-php example snippets
use MelhorEnvio\Shipment;
use MelhorEnvio\Resources\Shipment\Package;
use MelhorEnvio\Enums\Service;
use MelhorEnvio\Enums\Environment;
// Create Shipment Instance
$shipment = new Shipment('your-token', Environment::PRODUCTION);