homedesignshops/laravel-bol-com-retailer

Laravel Bol.com Retailer API package

v9.1.2 2024-11-18 09:45 UTC

README

Latest Version on Packagist Build Status Quality Score Total Downloads

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.