Download the PHP package beziworld/laravel-globkurier without Composer
On this page you can find all versions of the php package beziworld/laravel-globkurier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download beziworld/laravel-globkurier
More information about beziworld/laravel-globkurier
Files in beziworld/laravel-globkurier
Package laravel-globkurier
Short Description GlobKurier.pl REST API v1 client for Laravel: product search and quotes, add-ons, orders, best price orders, labels, protocols, courier pickups, tracking, points and dictionaries.
License MIT
Homepage https://github.com/beziworld/laravel-globkurier
Informations about the package laravel-globkurier
Laravel GlobKurier
GlobKurier.pl REST API v1 client for Laravel. GlobKurier compares and books domestic and international shipments with InPost, DPD, ORLEN Paczka, FedEx, UPS, Poczta Polska and many more carriers:
- login with e-mail and password, cached token, automatic new login after HTTP 401
- product search with prices (guest or account prices), cheapest product, add-ons with COD and insurance ranges
- order validation, order price, payment methods and order creation
- simplified best price orders (quote only or order passed to the carrier at once)
- labels (A4 or Zebra) and handover protocols as PDF, courier pickup windows and re-ordered pickups
- order details by hash or number, cancellation, tracking of one or many orders
- drop-off and pick-up points, countries (ISO codes resolved to GlobKurier ids), states, cities, carriers, agreements
- several accounts (named connections or runtime credentials) and a tracking poller with events
Polska wersja dokumentacji
Why this package
There is no PHP or Laravel package for GlobKurier on Packagist; the existing integrations are shop plugins
(PrestaShop, WooCommerce). This package covers the full integration path of the official documentation at
developer.globkurier.pl: products, add-ons, prices, orders, labels and tracking,
with immutable DTOs (amounts as decimal strings, dates in Europe/Warsaw), typed exceptions with field errors,
safe retries of GET requests only and tests on Http::fake().
Installation
Without credentials only public resources work: countries, guest product search, points and tracking. Every order
is sent with the consents from config('globkurier.agreements') (receiveElectronicBills, processingPersonalData)
unless the order defines its own; check the current list with GlobKurier::agreements('order').
Find a product and its add-ons
Place an order
Use GlobKurier::customRequiredFields($productId, 'PL', 'DE') to learn whether a product needs points, states,
the declared value or the purpose, and pass the customs declaration in customs for shipments outside the EU.
Best price orders
The simplified endpoint finds the cheapest offer of a carrier itself; it takes integration names, ISO country codes and add-on categories:
Orders, pickups and tracking
GlobKurier has no webhooks. Schedule the tracking command for orders in transit and listen to
ShipmentStatusChanged:
app(TrackingPoller::class)->poll($numbers) does the same from your own job.
Points and dictionaries
Several accounts
Errors
| Exception | When |
|---|---|
ApiException |
HTTP errors: httpStatus(), fieldErrors() (field => message), messages(), payload(), isValidationError(), isUnauthorized(), isNotFound(), isRateLimited() with retryAfter(); transport errors; non-PDF label responses |
AuthenticationException |
wrong e-mail or password |
InvalidConfiguration |
e-mail without password (or the other way round), unknown connection, unknown ISO country code |
All exceptions extend GlobKurierException. GET requests are repeated after connection errors and HTTP 5xx
(GLOBKURIER_RETRIES); POST, PUT and DELETE requests never are.
Development
Author
Created and maintained by Kamil Ćwiertnia, beziworld.eu.
- E-mail: [email protected]
- Issues: GitHub issues
Need an integration? Get in touch through beziworld.eu.
Other packages by the author
laravel-apaczka · laravel-furgonetka · laravel-polkurier · laravel-inpost · laravel-dpd
License
MIT. See LICENSE.md. This package is not affiliated with GlobKurier.pl.
All versions of laravel-globkurier with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^7.8
illuminate/cache Version ^12.0|^13.0
illuminate/console Version ^12.0|^13.0
illuminate/contracts Version ^12.0|^13.0
illuminate/events Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0