PHPackages                             mrmadclown/ennodia - 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. mrmadclown/ennodia

ActiveLibrary[Framework](/categories/framework)

mrmadclown/ennodia
==================

Ennodia a PHP Router

v3.0(3y ago)022[1 issues](https://github.com/MrMadClown/Ennodia/issues)[3 PRs](https://github.com/MrMadClown/Ennodia/pulls)MITPHPPHP ^8.1CI failing

Since Jul 12Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/MrMadClown/Ennodia)[ Packagist](https://packagist.org/packages/mrmadclown/ennodia)[ RSS](/packages/mrmadclown-ennodia/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (10)Used By (0)

Ennodia - a PHP Router
======================

[](#ennodia---a-php-router)

[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://opensource.org/licenses/MIT)[![Latest Stable Version](https://camo.githubusercontent.com/ef46e197e3875b54dd2f91faa8db81f02875e5d4359c56148b642ab579a8e77f/68747470733a2f2f706f7365722e707567782e6f72672f6d726d6164636c6f776e2f656e6e6f6469612f762f737461626c652e737667)](https://packagist.org/packages/mrmadclown/ennodia)[![Total Downloads](https://camo.githubusercontent.com/255aa80871a93765563bb4f56a91db2c41038f246b0c373cfc179e81bb539cbf/68747470733a2f2f706f7365722e707567782e6f72672f6d726d6164636c6f776e2f656e6e6f6469612f646f776e6c6f616473)](https://packagist.org/packages/mrmadclown/ennodia)[![example workflow](https://github.com/mrmadclown/ennodia/actions/workflows/tests.yml/badge.svg?event=push)](https://github.com/mrmadclown/ennodia/actions/workflows/tests.yml/badge.svg?event=push)[![example workflow](https://github.com/mrmadclown/ennodia/actions/workflows/static%20code%20analysis.yml/badge.svg?event=push)](https://github.com/mrmadclown/ennodia/actions/workflows/static%20code%20analysis.yml/badge.svg?event=push)

This is a pretty straight forward Router, a Route consists of a regular expression, a qualified Controller path and optionally a HTTP Method.

### Installation

[](#installation)

```
composer require mrmadclown/ennodia
```

The Router gets constructed by passing an Implementation of `Psr\Container\ContainerInterface::class` and a `MrMadClown\Ennodia\RouteCollection::class`.

### Usage

[](#usage)

```
use MrMadClown\Ennodia\RouteCollection;
use MrMadClown\Ennodia\SingleRoute;
use MrMadClown\Ennodia\Router;
use MrMadClown\Ennodia\MiddlewareGroup;
use MrMadClown\Ennodia\RouteCollection;
use Symfony\Component\HttpFoundation\Request;

use App\Http\Controllers\IndexController;
use App\Container; // implements Psr\Container\ContainerInterface;

$routes = RouteCollection::collect([
    SingleRoute::get('#^index$#', IndexController::class),
]);
$request = Request::createFromGlobals();
$router = new Router(new Container(), $routes, new MiddlewareGroup([]));
$response = $router->handle($request);
```

A Controller either implements `__invoke` or `get, post, put, patch, delete, etc..`

### Route Params

[](#route-params)

Define a route with a variable:

```
 SingleRoute::get('#^user/(?P\d+)$#', UserController::class),
 SingleRoute::get('#^(?P[a-z]+)/(?P[a-z]+)$#i', UserRepositoryController::class),
```

The variables from the route are passed to the respective function in the controller:

```
class UserController {
    public function get(int $userId): Response {
        //...
    }
}

class UserRepositoryController {
    public function __invoke(string $user, string $repository): Response {
        //...
    }
 }
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance60

Regular maintenance activity

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 63.5% 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 ~66 days

Total

4

Last Release

1200d ago

Major Versions

v1.0 → v2.02022-07-21

v2.1 → v3.02023-01-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/105f6dda4f290a91deac282c0954e6d50082616f050dae4dc4bbf42087587cbb?d=identicon)[MrMadClown](/maintainers/MrMadClown)

---

Top Contributors

[![MrMadClown](https://avatars.githubusercontent.com/u/12624410?v=4)](https://github.com/MrMadClown "MrMadClown (54 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (31 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mrmadclown-ennodia/health.svg)

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

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)[cakephp/authentication

Authentication plugin for CakePHP

1153.6M67](/packages/cakephp-authentication)[cakephp/authorization

Authorization abstraction layer plugin for CakePHP

742.2M34](/packages/cakephp-authorization)[neos/flow-development-collection

Flow packages in a joined repository for pull requests.

144179.3k3](/packages/neos-flow-development-collection)[yiisoft/yii-middleware

Yii Middleware

21151.3k1](/packages/yiisoft-yii-middleware)

PHPackages © 2026

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