Download the PHP package smart-dato/inpost-sdk without Composer
On this page you can find all versions of the php package smart-dato/inpost-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download smart-dato/inpost-sdk
More information about smart-dato/inpost-sdk
Files in smart-dato/inpost-sdk
Package inpost-sdk
Short Description A Laravel SDK for the InPost API — Shipping, Points, Tracking, Returns, and Pickups
License MIT
Homepage https://github.com/smart-dato/inpost-sdk
Informations about the package inpost-sdk
InPost SDK for Laravel
A Laravel SDK for the InPost API, covering Shipping, Points, Tracking, Returns, and One-Time Pickups. Built with Saloon v4 and Spatie Laravel Data.
Requirements
- PHP 8.4+
- Laravel 11 – 13
Installation
Publish the config file:
Configuration
Add the following to your .env file:
For staging environments, override the token and base URLs:
Published config (config/inpost-sdk.php):
Usage
Access the SDK via the InPost facade or by injecting Smartdato\InPost\InPost.
Shipping
Points
Tracking
Returns
Pickups
Error Handling
The SDK throws typed exceptions for API errors:
Authentication
The SDK uses OAuth2 Client Credentials flow. Tokens are automatically cached in Laravel's cache store and refreshed when expired. No manual token management is needed.
Using Different Credentials
You can create an SDK instance with custom credentials on the fly using InPost::make(), bypassing the service container entirely. This is useful for multi-tenant applications or when you need to connect to different InPost accounts:
You can also override URLs (e.g. for staging):
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- SmartDato
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of inpost-sdk with dependencies
illuminate/contracts Version ^11.0||^12.0||^13.0
saloonphp/laravel-plugin Version ^4.0||^5.0
spatie/laravel-data Version ^4.20
spatie/laravel-package-tools Version ^1.16