ensembleau / revel-php

PHP SDK for Revel Systems.
https://ensembleau.github.io/revel-php/
MIT License
2 stars 1 forks source link

revel-php

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.
    // ...
]));