ensembleau/revel-php

An SDK for communicating with the Revel Systems API.

1.1.2 2017-06-22 01:23 UTC

This package is not auto-updated.

Last update: 2025-07-06 07:57:58 UTC


README

Build Status

A PHP SDK for interacting with the Revel Systems API.

installation.

$ composer require ensembleau/revel-php

usage:

Create a new Revel instance:

$revel = new Revel('domain', 'secret', 'key');

Access various API endpoints through this instance, e.g.

// Get all products.
$products = $revel->products()->all();

// Get an establishment.
$establishment = $revel->establishments()->findById(1);

// Submit an online order.
$revel->ordering()->submit(Order::one($revel, [
    // Order content.
    // ...
]));