Download the PHP package gregs/attribute-router without Composer
On this page you can find all versions of the php package gregs/attribute-router. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download gregs/attribute-router
More information about gregs/attribute-router
Files in gregs/attribute-router
Download gregs/attribute-router
More information about gregs/attribute-router
Files in gregs/attribute-router
Vendor gregs
Package attribute-router
Short Description Attribute based routing for laravel.
License MIT
Homepage https://github.com/GregorLohaus/GregsAttributeRouter
Package attribute-router
Short Description Attribute based routing for laravel.
License MIT
Homepage https://github.com/GregorLohaus/GregsAttributeRouter
Please rate this library. Is it a good library?
Informations about the package attribute-router
Disclaimer
This library is under active development and the public api is likely to change without warning
Usage
Attribute based routing can be activated for a namespace
by adding the following to your routes/api.php or routes/web.php file:
Routes can then be defined like this:
⚠️ If the controller attribute is not present the attribute wont have any effect
This will result in the following routing setup:
Prefixes and middlewares can be used on a controller or method level:
This will result in the following routing setup:
All versions of attribute-router with dependencies
PHP Build Version
Package Version
The package gregs/attribute-router contains the following files
Loading the files please wait ...