homedesignshops/laravel-bol-com-retailer

Laravel Bol.com Retailer API package

v8.3 2023-07-07 07:49 UTC

This package is auto-updated.

Last update: 2024-05-07 13:55:54 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.