Download the PHP package very-code-com/furgonetka-api-php without Composer
On this page you can find all versions of the php package very-code-com/furgonetka-api-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download very-code-com/furgonetka-api-php
More information about very-code-com/furgonetka-api-php
Files in very-code-com/furgonetka-api-php
Package furgonetka-api-php
Short Description PHP client for the Furgonetka.pl REST API: OAuth2, price comparison, shipments, labels, pickups, tracking, pickup points, returns, address book, notifications and webhooks. One API for DPD, InPost, DHL, UPS, GLS, FedEx, Poczta Polska, ORLEN Paczka and more.
License Apache-2.0
Homepage https://github.com/very-code-com/furgonetka-api-php
Informations about the package furgonetka-api-php
furgonetka-api-php
PHP client library for the Furgonetka.pl REST API.
Compare prices of DPD, InPost, DHL, UPS, GLS, FedEx, Poczta Polska, ORLEN Paczka and others behind one API of the courier broker Furgonetka.pl: create and order shipments, download labels, book pickups, track parcels, find pickup points, send abroad and receive tracking webhooks. No framework and no HTTP library to install: plain cURL, PSR-3 for logging.
Installation
Requires PHP 8.2+ with ext-curl, ext-json, ext-libxml, ext-mbstring and ext-simplexml, a Furgonetka.pl account
and an OAuth application. Getting started shows how to get the keys, for the sandbox and for
production.
Quick start
Keep the keys in the environment (FURGONETKA_CLIENT_ID, FURGONETKA_CLIENT_SECRET, FURGONETKA_ENV) and log in once
from a terminal (php examples/02_password_grant_and_2fa.php); the token is stored and refreshes itself after that.
Ordering on production charges the account and books a carrier. Try everything on the sandbox first; the examples are dry unless you ask them to order.
Documentation
| Document | Contents |
|---|---|
| Getting started | Accounts and OAuth keys for the sandbox and production, configuration, debug mode, what to know before the first order |
| Authentication and tokens | The grants, token stores, several accounts, Laravel and Symfony |
| Sending abroad | Customs data, contracts, regulations, the customs signature outside the EU |
| API reference | Every client method, the objects they take and return, local validation, exceptions, the webhook parser |
| Furgonetka's quirks | What the API does that its documentation does not say, and what was not verified |
| Testing | Testing your code against a fake transport, running this library's tests, CI |
| Examples | Eighteen runnable scripts, three of them offline |
| Cookbook | About two hundred small recipes by carrier, service and country, each run against the sandbox |
| Changelog | Releases |
License
NOTICE for attribution requirements. You may use, distribute and modify
this library freely, and must retain the NOTICE file and copyright notices in any redistribution or derivative work.
Built by Very Code. Contributions welcome, open an issue or PR.
All versions of furgonetka-api-php with dependencies
ext-curl Version *
ext-json Version *
ext-libxml Version *
ext-mbstring Version *
ext-simplexml Version *
psr/log Version ^2.0|^3.0