PHPackages                             opsway/slim-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. opsway/slim-attribute-router

ActiveLibrary[Framework](/categories/framework)

opsway/slim-attribute-router
============================

Slim attribute router with support of groups and middlewares

v0.1.1(4y ago)12.8k↓50%MITPHPPHP ^8.0

Since May 2Pushed 4y ago2 watchersCompare

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

READMEChangelogDependencies (5)Versions (3)Used By (0)

slim-attribute-router
=====================

[](#slim-attribute-router)

Slim attribute router

This package allows you to add routes to your slim4 () application using attributes.

### Features

[](#features)

- Route methods support
- Route name support
- Route group support
- Middlewares support

Installation
------------

[](#installation)

This package can be installed using Composer
Navigate into your project's root directory and execute the bash command shown below

```
composer require opsway/slim-attribute-router
```

Enabling the Attribute Router
-----------------------------

[](#enabling-the-attribute-router)

Attribute router extends slims default RouteCollector, all you need to do is instantiate attribute router and pass it on to AppFactory. First parameter is array of namespace parts of app. It will be used for filtering classes in which search of parameters will go on.

```
