cegrent / current
Current RMS Laravel Package
0.1.2
2023-08-31 08:49 UTC
Requires
- guzzlehttp/guzzle: ^7.3.0
README
A lightweight package that will allow your Laravel application to talk to the Current RMS API.
Getting Started
Add to your project composer require Cegrent/current dev-master
.
- Add
Cegrent\Current\CurrentServiceProvider::class
to providers in config/app.php - Add
'Current' => Cegrent\Current\Current::class
to aliases in config/app.php - Run
php artisan vendor:publish
- Add API Key and domain details to config/current.php
Typical usage
GET request on /products
:
Current::get('/products', array('page' => '1', 'per_page' => '20', 'filtermode' => 'all'));
POST request on /availability/group
:
Current::post('/availability/group', array(), array('product_availability_view_options' => array('product_group_id' => 1));