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

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

alonity/router
==============

Alonity router

056PHP

Since Aug 19Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Alonity Router
==============

[](#alonity-router)

Fast default router of Alonity framework

Install
-------

[](#install)

`composer require alonity/router`

### Example

[](#example)

```
use alonity\router\Router;

$router = new Router();

$router->get('page/:name', function($req, $res){ $res->send('Page: '.$req->params['name']); })
    ->get('parent', null, true, [], [
        ['child', function($req, $res){ echo 'child'; }]
    ])
    ->post('send/via/post')
    ->setUndefinedRoute(new Route('', '', 'Custom 404 page'));

$router->execute();
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

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/2e5f56cbb91b132c04e03a2910f70a61ad19cb64da547f6f0761348f38347ae4?d=identicon)[alonity](/maintainers/alonity)

---

Top Contributors

[![alonity](https://avatars.githubusercontent.com/u/84131534?v=4)](https://github.com/alonity "alonity (25 commits)")

### Embed Badge

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

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

PHPackages © 2026

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