karrio/karrio-php

This package is abandoned and no longer maintained. No replacement package was suggested.

karrio Multi-carrier Shipping API PHP client library

2022.3.0 2022-03-17 20:02 UTC

README

This repository is not maintained anymore. Chat with us if you want to help maintain a PHP client for Karrio at https://github.com/karrioapi/karrio

Karrio PHP Client

karrio is a universal Shipping API that simplifies the integration of logistic carrier services.

Visit karrio.io to deploy your private cloud multi-carrier shipping API.

Documentation

See the full PHP API docs.

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

composer require karrio/karrio-php

Development

composer install

Usage

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure 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;
}

?>

Documentation For Models

Models

Author

Team Karrio | hello@karrio.io | karrio.io