PHP code example of smart-dato / shippypro

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

    

smart-dato / shippypro example snippets


return [
    'url' => env('SHIPPYPRO_URL', 'https://www.shippypro.com/api'),
    'authkey' => env('SHIPPYPRO_AUTH_KEY', ''),
];

    $data = new \SmartDato\ShippyPro\Data\Shipment\ShipmentData(...); 
    $connector = new \SmartDato\ShippyPro\ShippyPro();
    $response = (new \SmartDato\ShippyPro\Resource\Shipment($connector))
        ->create($data);
bash
php artisan vendor:publish --tag="shippypro-config"