homedesignshops / laravel-bol-com-retailer
Laravel Bol.com Retailer API package
v9.1.2
2024-11-18 09:45 UTC
Requires
- php: ^8.1
- illuminate/support: ^8.0|^9.0|^10.0
- picqer/bol-retailer-php-client: ^10
Requires (Dev)
- orchestra/testbench: ^6.0|^7.0|^8.0
- phpunit/phpunit: ^7.0|^9.3|^10.0
README
A wrapper for the Bol.com Retailer API from Picger's Bol.com package.
Installation
You can install the package via composer:
composer require homedesignshops/laravel-bol-com-retailer
Configure the .env
file
BOL_COM_DEMO_MODE=true BOL_COM_CLIENT_ID={CLIENT_ID_HERE} BOL_COM_CLIENT_SECRET={CLIENT_SECRET_HERE}
Publish the config file
php artisan vendor:publish --provider="HomeDesignShops/LaravelBolComRetail/BolComRetailerServiceProvider" --tag="config"
You're ready to use this package
Usage
Get all open orders
$orders = BolComRetailer::getOpenOrders();
Get order
$order = BolComRetailer::getOrder($orderId);
Ship order item
$processStatus = BolComRetailer::shipOrderItem(OrderItem $orderItem, Transport $transport);
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 kevin@homedesignshops.nl instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.