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

1.1.2 2017-06-22 01:23 UTC

This package is not auto-updated.

Last update: 2025-12-21 10:02:27 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.
    // ...
]));