PHPackages                             phact-cmf/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. phact-cmf/router

ActiveLibrary

phact-cmf/router
================

v1.0.0(5y ago)131MITPHPPHP &gt;=7.2CI failing

Since Jun 2Pushed 5y ago2 watchersCompare

[ Source](https://github.com/phact-cmf/Router)[ Packagist](https://packagist.org/packages/phact-cmf/router)[ Docs](https://github.com/phact-cmf/Router)[ RSS](/packages/phact-cmf-router/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)Dependencies (9)Versions (1)Used By (0)

Router
======

[](#router)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c96552bece4bf36d43f973cedd011907a2eb1b4290d8e41ceeb5f2156c3d133f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70686163742d636d662f526f757465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/phact-cmf/Router/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/2669527c1cdd1bc63640a700948bb62b5ec149b7436423e2bdef201b47205acd/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70686163742d636d662f526f757465722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/phact-cmf/Router/?branch=master)[![Build Status](https://camo.githubusercontent.com/71b3bbbb472976fa22ca09fcf2873369548c682083875ee40c3a268edfa45659/68747470733a2f2f7472617669732d63692e6f72672f70686163742d636d662f526f757465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/phact-cmf/Router)[![Code Intelligence Status](https://camo.githubusercontent.com/9fdbe5c37c7711921000bb7d870ceeb2a798e4b15a3e156956758fa800bf3c73/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70686163742d636d662f526f757465722f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)

Follows PSR-7, PSR-15, and PSR-1, PSR-2, PSR-4, PSR-11, PSR-16.

Based on [FastRoute](https://github.com/nikic/FastRoute), inspired by [league/route](https://route.thephpleague.com/).

Main ideas
----------

[](#main-ideas)

- follow PSR-7/PSR-15 or using FastRoute approach
- reversed routing (URL generation by route name)
- almost native [FastRoute](https://github.com/nikic/FastRoute) with possibility of using various processing strategies (CharCountBased, GroupCountBased...)
- fast multiple dispatch and reverse (with ability to add routes dynamically)
- allows using custom Loader (allows to load routes from different formats, files, etc.)
- allows caching (PSR-16)
- flexible (you can replace any component: Invoker, Dispatcher, Reverser, etc.)

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

[](#installation)

```
composer require phact-cmf/router
```

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

[](#requirements)

- PHP &gt;= 7.2

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

[](#documentation)

[Full documentation](docs/en.md)

[Доступна полная документация на русском языке](docs/ru.md)

License
-------

[](#license)

The MIT License (MIT). [License File](LICENSE.md).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

2175d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/324fc1713367ed6c64d63e6ad760b2603c7e231be26f726f034eff98595c4744?d=identicon)[AntonOkulov](/maintainers/AntonOkulov)

---

Top Contributors

[![AntonOkulov](https://avatars.githubusercontent.com/u/34657149?v=4)](https://github.com/AntonOkulov "AntonOkulov (36 commits)")

---

Tags

routerpsr7routepsr15FastRoute

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/phact-cmf-router/health.svg)

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

###  Alternatives

[league/route

Fast routing and dispatch component including PSR-15 middleware, built on top of FastRoute.

6633.1M115](/packages/league-route)[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[thecodingmachine/graphqlite

Write your GraphQL queries in simple to write controllers (using webonyx/graphql-php).

5723.1M30](/packages/thecodingmachine-graphqlite)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)[neos/flow-development-collection

Flow packages in a joined repository for pull requests.

144179.3k3](/packages/neos-flow-development-collection)[windwalker/framework

The next generation PHP framework.

25639.1k1](/packages/windwalker-framework)

PHPackages © 2026

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