PHPackages                             gregs/attribute-router - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. gregs/attribute-router

ActiveLibrary[Framework](/categories/framework)

gregs/attribute-router
======================

Attribute based routing for laravel.

v0.3.0(1y ago)00MITPHPPHP ^8.3CI passing

Since Feb 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/GregorLohaus/GregsAttributeRouter)[ Packagist](https://packagist.org/packages/gregs/attribute-router)[ Docs](https://github.com/GregorLohaus/GregsAttributeRouter)[ RSS](/packages/gregs-attribute-router/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (4)Used By (0)

Disclaimer
==========

[](#disclaimer)

#### This library is under active development and the public api is likely to change without warning

[](#this-library-is-under-active-development-and-the-public-api-is-likely-to-change-without-warning)

Usage
=====

[](#usage)

#### Attribute based routing can be activated for a namespace
 by adding the following to your routes/api.php or routes/web.php file:

[](#attribute-based-routing-can-be-activated-for-a-namespace--by-adding-the-following-to-your-routesapiphp-or-routeswebphp-file)

```
