ensembleau / revel-php
An SDK for communicating with the Revel Systems API.
1.1.2
2017-06-22 01:23 UTC
Requires
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- phpunit/phpunit: ^5.7
- vlucas/phpdotenv: ^2.4
README
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.
// ...
]));