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

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

agregalel/router-php
====================

fast router for your projects

1.0.2(2y ago)07MITPHP

Since Aug 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/diegosamanez/router-php)[ Packagist](https://packagist.org/packages/agregalel/router-php)[ RSS](/packages/agregalel-router-php/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (3)Used By (0)

Router PHP
==========

[](#router-php)

A simple router for php.

Getting Started
---------------

[](#getting-started)

```
$ composer require agregalel/router-php

```

### router.php file

[](#routerphp-file)

```
use agregalel\router_php\Route;
use controllers\TestController;

include __DIR__ . "/../vendor/autoload.php";
include __DIR__ . "/controllers/TestController.php";

Route::get('', [new TestController(), 'index']);

Route::get('param_request_example/{:id}', [new TestController(), 'paramRequestExample']);

Route::get('form_example', [new TestController(), 'formExample']);

Route::post('post_example', [new TestController(), 'postExample']);

Route::get('404', [new TestController(), 'error']);

/**
 * Init Router
 */
Route::initRouter();
```

```
php -S 127.0.0.1:8000 ./router.php

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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 ~0 days

Total

2

Last Release

986d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/32b90f09b9b95bdcf11df4d435502653a251f0f7b36722c03f1dc2f9c88573bc?d=identicon)[diegosamanez](/maintainers/diegosamanez)

---

Top Contributors

[![diegosamanez](https://avatars.githubusercontent.com/u/67506140?v=4)](https://github.com/diegosamanez "diegosamanez (10 commits)")

---

Tags

urluriphprouterrouting

### Embed Badge

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

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

###  Alternatives

[symfony/routing

Maps an HTTP request to a set of configuration variables

7.6k789.4M1.8k](/packages/symfony-routing)[league/uri-components

URI components manipulation library

31932.3M67](/packages/league-uri-components)[fsasvari/laravel-trailing-slash

The package that adds redirection with trailing slash to Laravel framework.

63164.3k](/packages/fsasvari-laravel-trailing-slash)[rowbot/url

A WHATWG URL spec compliant URL parser for working with URLs and their query strings.

19648.2k4](/packages/rowbot-url)

PHPackages © 2026

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