Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
/ karrio-php Public archive

Universal Shipping API PHP library (Canada Post, DHL, FedEx, UPS, Purolator and more)

License

Notifications You must be signed in to change notification settings

karrioapi/karrio-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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