PHPackages                             codin/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. codin/router

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

codin/router
============

Just another router

10PHP

Since Oct 25Pushed 4y agoCompare

[ Source](https://github.com/codin/router)[ Packagist](https://packagist.org/packages/codin/router)[ RSS](/packages/codin-router/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Router
======

[](#router)

Simple routing component

```
$routes = new Router(); // RouterFactory::createFromPath('path/to/definitions');

$route = $routes->create('get', '/path/to/resource', 'controller@method');
$routes->append($route);

// or shortcut
$routes->get('/path/to/resource', 'controller@method');

// using grouping
$routes->group([
    'prefix' => '/api',
    'namespace' => 'API\\',
], static function ($routes) {
    $routes->get('/path/to/resource', 'controller@method');
})

$psr7request = new Request('post', 'foo/bar');
$matcher = new Matcher($routes);
try {
    $route = $matcher->match($psr7request);
} catch (Exceptions\RouteNotFound $e) {
    // do something with 404
}
$route->getController(); // returns controller@method
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/caaa77e482db0b7e6340c815a767adfa0c910d7ad437427a51702a619a202de9?d=identicon)[rwarasaurus](/maintainers/rwarasaurus)

---

Top Contributors

[![kierwils](https://avatars.githubusercontent.com/u/596586?v=4)](https://github.com/kierwils "kierwils (5 commits)")

### Embed Badge

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

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

###  Alternatives

[tuck/sort

Syntactic sugar for PHP's sorting

11547.3k](/packages/tuck-sort)[rezozero/canonical-email

Simple PHP library to canonize emails address from gmail.com or other providers that allow several forms of email.

1162.0k](/packages/rezozero-canonical-email)[demency/nova-gridder

A Laravel Nova Package for resource details grids.

1615.1k](/packages/demency-nova-gridder)[kijtra/textdiff

Simple text diff Class. 簡易的なテキスト比較ライブラリです。

491.5k](/packages/kijtra-textdiff)

PHPackages © 2026

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