adlnetworks / laravel-dhlparcel
DHL Parcel API client for Laravel
Fund package maintenance!
www.paypal.me/mvdnbrk
bunq.me/mvdnbrk
Requires
- php: ^7.2
- illuminate/support: ^5.5 || ^5.8 || ^6.0 || ^7.0
- mvdnbrk/dhlparcel-php-api: ^1.0
Requires (Dev)
- nunomaduro/collision: ^3.0
- orchestra/testbench: ^3.8 || ^4.0 || ^5.0
- phpunit/phpunit: ^8.0 || ^9.0
- symfony/var-dumper: ^4.3 || ^5.0
This package is not auto-updated.
Last update: 2025-03-26 12:34:43 UTC
README
This package incorporates the DHL Parcel API client into your Laravel project.
Installation
You can install the package via composer:
composer require mvdnbrk/laravel-dhlparcel
Configuration
All you need to do is add your credentials to the .env
file:
DHLPARCEL_ID=YOUR-USER-ID
DHLPARCEL_SECRET=YOUR-SECRET-KEY
Usage
use Mvdnbrk\Laravel\Facades\DhlParcel; $shipment = DhlParcel::shipments()->create([ ... ]);
Global helper method
For your convenience this package provides a global dhlparcel()
helper function.
dhlparcel()->shipments()->create([ ... ]);
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email mvdnbrk@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.