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 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.
See the full PHP API docs.
PHP 5.5 and later
To install the bindings via Composer, add the following to composer.json
:
composer require karrio/karrio-php
composer install
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;
}
?>
- Address
- AddressData
- AddressList
- AddressValidation
- CarrierList
- CarrierSettings
- Charge
- Commodity
- CommodityData
- Customs
- CustomsData
- CustomsList
- Documents
- Duty
- ErrorResponse
- Message
- Metadata
- Operation
- OperationConfirmation
- OperationResponse
- Order
- OrderData
- OrderList
- OrderUpdateData
- Parcel
- ParcelData
- ParcelList
- Payment
- Pickup
- PickupCancelData
- PickupCancelRequest
- PickupData
- PickupList
- PickupRequest
- PickupResponse
- PickupUpdateData
- PickupUpdateRequest
- Rate
- RateRequest
- RateResponse
- References
- Shipment
- ShipmentCancelRequest
- ShipmentData
- ShipmentList
- ShipmentPurchaseData
- ShipmentRateData
- ShipmentUpdateData
- ShippingRequest
- ShippingResponse
- TokenObtainPair
- TokenPair
- TokenRefresh
- TokenVerify
- TrackerList
- TrackingEvent
- TrackingResponse
- TrackingStatus
- Webhook
- WebhookData
- WebhookList
- WebhookTestRequest
Team Karrio | hello@karrio.io | karrio.io