cegrent/current

Current RMS Laravel Package

0.1.2 2023-08-31 08:49 UTC

This package is auto-updated.

Last update: 2024-04-30 00:39:18 UTC


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.

  1. Add Cegrent\Current\CurrentServiceProvider::class to providers in config/app.php
  2. Add 'Current' => Cegrent\Current\Current::class to aliases in config/app.php
  3. Run php artisan vendor:publish
  4. 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));