Download the PHP package alterway/rest-problem-bundle without Composer
On this page you can find all versions of the php package alterway/rest-problem-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alterway/rest-problem-bundle
More information about alterway/rest-problem-bundle
Files in alterway/rest-problem-bundle
Package rest-problem-bundle
Short Description way to respect Problem Details for HTTP APIs RFC (http://tools.ietf.org/html/draft-nottingham-http-problem-03)
License MIT
Informations about the package rest-problem-bundle
RestProblemBundle
Bundle to manage Problems in API with Symfony2.
This bundle follows the Problem Details for HTTP APIs recommandation.
Installation
Edit your composer.json
:
And run Composer:
php composer.phar update alterway/rest-problem-bundle
Enable your bundle in your AppKernel.php
:
Usage
Usage with annotations
Remember to enable annotations :
And to register the autoloader in your app/autoload.php
file:
This will send an application/api-problem+json
header:
Problem's types
You need to create your own problem types. There are by default the following problems:
- Problem\InvalidQuery
- Problem\InvalidQueryForm
- ...
Todo
Add controllers and route to provide problemType
Contribute
Install dev dependencies:
php composer.phar update --dev
Run Behat:
./vendor/bin/behat @AwRestProblemBundle
Copyright
Copyright (c) 2013 La Ruche Qui Dit Oui!. See LICENSE for details.
Contributors
- Lead: Jean-François Lépine (Halleck45)
- Developer: Antoine Lévêque (gh0stonio)
Sponsors
All versions of rest-problem-bundle with dependencies
symfony/symfony Version ~2.2
sensio/framework-extra-bundle Version ~2.2