smart-dato / eushipments
EuShipments Laravel SDK
Fund package maintenance!
0.0.4
2026-04-01 11:50 UTC
Requires
- php: ^8.2|^8.3|^8.4|^8.5
- illuminate/contracts: ^10.0||^11.0||^12.0||^13.0
- illuminate/support: ^10.0||^11.0||^12.0||^13.0
- saloonphp/saloon: ^4.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.9||^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^8.22||^9.0||^10.0
- pestphp/pest: ^3.0||^4.0||^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^3.0||^4.0
- phpstan/extension-installer: ^1.3||^2.0
- phpstan/phpstan-deprecation-rules: ^1.1||^2.0
- phpstan/phpstan-phpunit: ^1.3||^2.0
- spatie/laravel-ray: ^1.35
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-23 14:31:42 UTC
README
This is our EuShipments Laravel SDK. API documentation can be found here
Installation
You can install the package via composer:
composer require smart-dato/eushipments
You can publish the config file with:
php artisan vendor:publish --tag="eushipments-config"
EUSHIPMENTS_BASE_URL=https://test-api.inout.bg/api/v1/ EUSHIPMENTS_TOKEN=your-api-token
The test environment is https://test-api.inout.bg/api/v1/; production is https://api1.inout.bg/api/v1/.
Usage
use SmartDato\EuShipments\Data\AddressData; use SmartDato\EuShipments\Data\AirWaybillData; use SmartDato\EuShipments\Data\ShipmentData; use SmartDato\EuShipments\Enums\Payer; use SmartDato\EuShipments\Enums\Service; use SmartDato\EuShipments\EuShipmentsConnector; use SmartDato\EuShipments\Requests\Shipment\CreateShipmentRequest; $connector = new EuShipmentsConnector(); $response = $connector->send(new CreateShipmentRequest(new ShipmentData( senderId: 1234, courierId: 999, waybillAvailableDate: now(), serviceName: Service::crossborder, recipient: new AddressData( name: 'Jane Doe', countryIsoCode: 'PL', streetName: 'ul. Przykladowa 1', buildingNumber: '1', addressText: 'ul. Przykladowa 1', phoneNumber: '000000000', cityName: 'Warszawa', zipCode: '00-001', contactPerson: 'Jane Doe', email: 'jane@example.com', ), awb: new AirWaybillData( parcels: 1, envelopes: 0, totalWeight: 0.7, openPackage: false, saturdayDelivery: false, referenceNumber: 'order-1001', products: 'Clothes', bankRepayment: 0, shipmentPayer: Payer::sender, declaredValue: 0, otherRepayment: null, observations: null, fragile: true, productsInfo: 'Clothes', piecesInPack: 1, ), )));
senderId and courierId are the IDs from your EuShipments account.
Testing
composer test
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
License
The MIT License (MIT). Please see License File for more information.