| Package Data | |
|---|---|
| Maintainer Username: | avnir |
| Maintainer Contact: | arexhepi@gmail.com (Avni Rexhepi) |
| Package Create Date: | 2015-05-05 |
| Package Last Update: | 2015-08-05 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-31 03:00:23 |
| Package Statistics | |
|---|---|
| Total Downloads: | 280 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
Major Versions:
laravel/framework:~5.* and avnir/easyrouting:~2
laravel/framework:4.* and avnir/easyrouting:~1
Begin by installing this package through Composer. Edit your project's composer.json file to require avnir/EasyRouting.
{
"require": {
"avnir/EasyRouting": "~2"
}
}
Next, update Composer from the Terminal:
php composer.phar update
To use the EasyRouting Provider, you must register the provider when bootstrapping your Laravel application.
Find the providers key in your config/app.php and register the EasyRouting Provider.
'providers' => array(
// ...
'Avnir\Easyrouting\EasyroutingServiceProvider::class',
)
Find the aliases key in your config/app.php and add the AWS facade alias.
'aliases' => array(
// ...
'Easyrouting' => Avnir\Easyrouting\Easyrouting::class,
)
On the routes.php file you need to call
\EasyRouting::run();
this will setup REST routes for all the public methods of the Controllers.
If you ever want to exclude a controller from having a route, just add
var $exclude = true;
into the Controller