Download the PHP package kohenkatz/laravel-restful without Composer
On this page you can find all versions of the php package kohenkatz/laravel-restful. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kohenkatz/laravel-restful
More information about kohenkatz/laravel-restful
Files in kohenkatz/laravel-restful
Download kohenkatz/laravel-restful
More information about kohenkatz/laravel-restful
Files in kohenkatz/laravel-restful
Vendor kohenkatz
Package laravel-restful
Short Description Create your own REST API in Laravel. Supports JSON, JSONP, and XML output.
License MIT
Homepage https://github.com/kohenkatz/laravel-restful
Package laravel-restful
Short Description Create your own REST API in Laravel. Supports JSON, JSONP, and XML output.
License MIT
Homepage https://github.com/kohenkatz/laravel-restful
Please rate this library. Is it a good library?
Informations about the package laravel-restful
Restful Controller for Laravel
A base controller for laravel that handles formatting.
Installation
Composer
Once you've grabbed the code, you'll need to add the RoutingServiceProvider to the list of providers in app/config/app.php
as follows
Usage
The concept uses the same principles as laravel's resource routing. Your controller should extend the one in this package. Each action should return an array which will automatically be formatted.
Add the route to app/routes.php
:
Then add the controller as follows
Todo
- Split the controller down so that the encoding happens elsewhere to allow for easier extending
- Add other encoders (php array, csv etc)
- Add more documentation
- Investigate if traits would be better suited for parts
All versions of laravel-restful with dependencies
PHP Build Version
Package Version
Requires
laravel/framework Version
4.2.*
The package kohenkatz/laravel-restful contains the following files
Loading the files please wait ....