PHP code example of isetdev / colibri-shipper-sdk-php

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

    

isetdev / colibri-shipper-sdk-php example snippets



$xApiKey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; // API Key (Request to Dev Team)

$client = new FreteasyLib\FreteasyClient($xApiKey);

$quote = $client->getQuote();

function getQuote()


$result = $quote->getQuote();


function createQuote($quote)

$quote = new Quote();

$result = $quote->createQuote($quote);


$address = $client->getAddress();

function getByPostcode($options)

$country = 'BR';
$collect['country'] = $country;

$postcode = '31275060';
$collect['postcode'] = $postcode;


$result = $address->getByPostcode($collect);

autoload.php