PHPackages                             blackbonjour/slim-route-registry - 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. blackbonjour/slim-route-registry

ActiveLibrary[Framework](/categories/framework)

blackbonjour/slim-route-registry
================================

Attribute based route registry for Slim 4.

0.3.0(10mo ago)09MITPHPPHP ^8.2

Since Apr 6Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/BlackBonjour/slim-route-registry)[ Packagist](https://packagist.org/packages/blackbonjour/slim-route-registry)[ RSS](/packages/blackbonjour-slim-route-registry/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

Slim Route Registry
===================

[](#slim-route-registry)

A PHP library that provides attribute-based route registration for Slim Framework applications. This library allows you to define routes using PHP 8 attributes on your handler classes and methods, making your code more declarative and organized.

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- Slim Framework 4.14 or higher
- composer/class-map-generator 1.6 or higher

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

[](#installation)

You can install the library via Composer:

```
composer require blackbonjour/slim-route-registry
```

Basic Usage
-----------

[](#basic-usage)

### 1. Create a Route Handler

[](#1-create-a-route-handler)

Create a class that will handle your route and add the `Route` attribute to it:

```
