PHP code example of karrio / karrio-php
1. Go to this page and download the library: Download karrio/karrio-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/ */
karrio / karrio-php example snippets
onfigure API key authorization: Token
$karrio = new \Karrio\Karrio('YOUR_API_KEY', 'https://api.karrio.io');
try {
$result = $karrio->carriers->list();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling carriers->list: ', $e->getMessage(), PHP_EOL;
}
bash
composer