atannex / routing
Attribute routing for Laravel: declare routes on the controllers themselves and they register automatically, with names, groups, prefixes, middleware, constraints, bindings, resources with policies, inline rate limits, webhooks, redirects, views, fallbacks, validation, deprecation headers and specif
Requires
- php: ^8.2
- illuminate/cache: ^11.0|^12.0
- illuminate/console: ^11.0|^12.0
- illuminate/filesystem: ^11.0|^12.0
- illuminate/http: ^11.0|^12.0
- illuminate/routing: ^11.0|^12.0
- illuminate/support: ^11.0|^12.0
- illuminate/validation: ^11.0|^12.0
Requires (Dev)
- orchestra/testbench: ^9.0|^10.0
- phpunit/phpunit: ^11.5
Suggests
- illuminate/broadcasting: For #[Channel] broadcast channel classes (^11.0|^12.0).
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-30 11:14:52 UTC
README
Lets you declare Laravel routes on the controllers themselves using PHP attributes, instead of listing them in routes/web.php. The package finds them and registers them in the right order, with names, middleware, groups, model binding, validation and rate limits. Scheduled tasks and broadcast channels can be declared the same way.
Install
composer require atannex/routing