easybib / silex-hal-provider
Silex provider for the nocarrier/hal library
Installs: 2 205
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 11
Forks: 0
Open Issues: 0
Requires
- nocarrier/hal: ~0.9.10
This package is not auto-updated.
Last update: 2024-11-09 18:38:09 UTC
README
Adds a HAL builder object to the silex container which returns instances of HAL objects from the nocarrier/hal library.
Background on HAL:
- http://en.wikipedia.org/wiki/Hypertext_Application_Language
- http://stateless.co/hal_specification.html
Usage
$app->register(new EasyBib\Silex\Provider\HALServiceProvider());
$hal = $app['hal']->build('/orders', ['customerId' => 'CUS1234']);
See the (Nocarrier\Hal documentation)[https://github.com/blongden/hal/blob/develop/README.md] for more examples of how to use the HAL library itself.