PHPackages                             zaphyr-org/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. [HTTP &amp; Networking](/categories/http)
4. /
5. zaphyr-org/router

ActiveLibrary[HTTP &amp; Networking](/categories/http)

zaphyr-org/router
=================

PSR-7 router supporting attribute-based routing, complete with PSR-15 middleware and PSR-11 container support, all built upon the foundation of FastRoute.

1.3.2(4mo ago)13.8k↓53.5%1MITPHPPHP &gt;=8.1CI passing

Since Sep 20Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/zaphyr-org/router)[ Packagist](https://packagist.org/packages/zaphyr-org/router)[ RSS](/packages/zaphyr-org-router/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (9)Dependencies (11)Versions (10)Used By (1)

[![License](https://camo.githubusercontent.com/3b57d0e7bfeaddc41730e3581cfe9ec609bff9636776f9f7a13c424cf7c454f3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7a61706879722d6f72672f726f75746572)](https://camo.githubusercontent.com/3b57d0e7bfeaddc41730e3581cfe9ec609bff9636776f9f7a13c424cf7c454f3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7a61706879722d6f72672f726f75746572)[![Version](https://camo.githubusercontent.com/61458e8e616957064e8317a85ee939ed82557260ddde51edb8aab54447f49f7f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a61706879722d6f72672f726f75746572)](https://camo.githubusercontent.com/61458e8e616957064e8317a85ee939ed82557260ddde51edb8aab54447f49f7f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a61706879722d6f72672f726f75746572)[![Issues](https://camo.githubusercontent.com/6c83c15f78047841e5fa66789095788ed0d656f731eb36d4a4c434d40f9c3198/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f7a61706879722d6f72672f726f75746572)](https://camo.githubusercontent.com/6c83c15f78047841e5fa66789095788ed0d656f731eb36d4a4c434d40f9c3198/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f7a61706879722d6f72672f726f75746572)[![Tests](https://github.com/zaphyr-org/router/actions/workflows/tests.yml/badge.svg)](https://github.com/zaphyr-org/router/actions/workflows/tests.yml/badge.svg)[![Codecov](https://camo.githubusercontent.com/690d2d4b33f5879103c77ef27b0c7aedecabb3a0b68f43f51fcba96800536c34/68747470733a2f2f636f6465636f762e696f2f67682f7a61706879722d6f72672f726f757465722f67726170682f62616467652e7376673f746f6b656e3d3253545034304b433731)](https://codecov.io/gh/zaphyr-org/router)

Router
======

[](#router)

Robust [PSR-7](https://www.php-fig.org/psr/psr-7) router supporting [attribute-based](https://www.php.net/manual/en/language.attributes.overview.php) routing, complete with [PSR-15](https://www.php-fig.org/psr/psr-15/) middleware and [PSR-11](https://www.php-fig.org/psr/psr-11) container support, all built upon the foundation of [FastRoute](https://github.com/nikic/FastRoute).

System Requirements
-------------------

[](#system-requirements)

You need `PHP => 8.1` but the latest stable version of PHP is recommended.

This package is continuously tested on the following PHP versions:

- PHP 8.1
- PHP 8.2
- PHP 8.3
- PHP 8.4
- PHP 8.5

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

[](#installation)

It's recommended that you use [Composer](https://getcomposer.org/) to install the router repository.

```
composer require zaphyr-org/router
```

Documentation
-------------

[](#documentation)

You can read the full documentation [here](https://zaphyr.org/docs/repositories/latest/router).

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Issues
------

[](#issues)

Bug reports and feature requests can be submitted on the [GitHub Issue Tracker](https://github.com/zaphyr-org/router/issues).

Security
--------

[](#security)

If you discover security related issues, please email  **instead of using the issue tracker!**

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://zaphyr.org/contributions) for details.

Code of Conduct
---------------

[](#code-of-conduct)

Please see [CODE OF CONDUCT](https://zaphyr.org/contributions#code-of-conduct) for details.

License
-------

[](#license)

This project is licensed under the MIT license. See [LICENSE](LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance76

Regular maintenance activity

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~111 days

Recently: every ~186 days

Total

9

Last Release

130d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/25499f6685a498dbadd9b45769a40dc4c792434b54f4d434ce44a432f0b18741?d=identicon)[merloxx](/maintainers/merloxx)

---

Top Contributors

[![merloxx](https://avatars.githubusercontent.com/u/12734661?v=4)](https://github.com/merloxx "merloxx (57 commits)")

---

Tags

fast-routepsr-11psr-15psr-7routerroutingpsr-7PSR-11routerroutingpsr-15fast-route

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/zaphyr-org-router/health.svg)

```
[![Health](https://phpackages.com/badges/zaphyr-org-router/health.svg)](https://phpackages.com/packages/zaphyr-org-router)
```

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.9k19.5M1.8k](/packages/cakephp-cakephp)[sunrise/http-router

A powerful solution as the foundation of your project.

17451.6k10](/packages/sunrise-http-router)[mezzio/mezzio

PSR-15 Middleware Microframework

3923.8M126](/packages/mezzio-mezzio)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[typo3/cms-core

TYPO3 CMS Core

3713.2M5.1k](/packages/typo3-cms-core)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
