A PHP SDK for interacting with the Revel Systems API.
$ composer require ensembleau/revel-php
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.
// ...
]));