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

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

nigr/router
===========

simple router

011PHP

Since Dec 22Pushed 4mo agoCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Necessary:
----------

[](#necessary)

```
- .htaccess(in root project folder)?

```

Install library:
----------------

[](#install-library)

```
    composer require nigr/router:@dev
```

Scheme URI
----------

[](#scheme-uri)

```
	[method] [protocol]://[host]/[path]?[queryParams]
	---
	[GET] [https]://[www.example.ru]/
	[GET] [https]://[www.example.ru]/[test]?[age=20]
	[GET] [https]://[www.example.ru]/[test/1]?[age=20]

```

Start router:
-------------

[](#start-router)

```
	$router = new Router();
	list($controller, $action, $params) = $router->run();
	...
```

Route structure:
----------------

[](#route-structure)

```
$route = ("method" => "", "path" => "", "handler" => ["controller", "action"]);

return [
	'controller' => $controller,
	'action' => $action,
	'params' => ['get' => $queryParams, 'post' => $post, 'input' => $input]
];
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance50

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity14

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/38d7591c1d1cc143dc1198c586379e9d571162358c4a3487acab436f4d4692e1?d=identicon)[NikitinVladimirV](/maintainers/NikitinVladimirV)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[mihaildev/yii2-ckeditor

Yii2 CKEditor

118552.5k50](/packages/mihaildev-yii2-ckeditor)[yansongda/supports

common components

211.4M31](/packages/yansongda-supports)[ringierimu/state-workflow

Laravel State Workflow provide tools for defining and managing workflows and activities with ease.

3251.1k](/packages/ringierimu-state-workflow)[kohkimakimoto/earray

EArray is a small PHP class to provide convenient ways to access a PHP array.

176.1k](/packages/kohkimakimoto-earray)

PHPackages © 2026

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