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
Requires
- php: ^7.3 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.12
- phpunit/phpunit: ^8.0 || ^9.0
This package is auto-updated.
Last update: 2024-02-15 17:56:53 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
- 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
Author
Team Karrio | hello@karrio.io | karrio.io