ensembleau / revel-php
An SDK for communicating with the Revel Systems API.
Installs: 181
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 1
pkg:composer/ensembleau/revel-php
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.
// ...
]));