With this package you can easy create a API interfaces on you backend with validation, data mapping and doc generator.
Add FiveLab/Api in your composer.json:
{
"require": {
"fivelab/api": "~1.0"
}
}
Now tell composer to download the library by running the command:
$ php composer.phar update fivelab/api