PHPackages                             heaton21/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. [Framework](/categories/framework)
4. /
5. heaton21/router

ActiveLibrary[Framework](/categories/framework)

heaton21/router
===============

easy router

0.0.1(6y ago)09MITPHP

Since Nov 24Pushed 6y agoCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Router
======

[](#router)

Легкий маршрутизатор и диспетчер для небольших веб-приложений.

Использование
=============

[](#использование)

Создать экземпляр класса Router.

```
$route = new Heaton\Routing\Router();

```

Установить пространство имен для конттроллеров и middleware

```
$route->setNamespace('App\\Http\\Controllers\\')->setMiddlewareNamespace('App\\Http\\Middleware\\');

```

Пример подстановочных знаков:

- `/page/:slug` - любые символы в одном сегменте, такие как `/page/qwerty` или `/page/123`;
- `/page/:id` - цифры только нравятся `/page/123`;
- `/page/:any` - любые символы, такие как `/page/qwerty` или `/page/qwerty/123`;

Начать обработку маршрута.

```
$route->handleRoute();

```

Пример использования
====================

[](#пример-использования)

```
$route = new Heaton\Routing\Router();
$route->setNamespace('App\\Http\\Controllers\\')->setMiddlewareNamespace('App\\Http\\Middleware\\');

$route->get('/', 'IndexController@index', ['Auth', 'Verify']);
$route->get('/post', 'PostController@index');
$route->get('/post/:id', 'PostController@show');
$route->get('/post/:slug/create', 'PostController@create');

$route->handleRoute();

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

2413d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47715306?v=4)[heaton21](/maintainers/heaton21)[@heaton21](https://github.com/heaton21)

---

Top Contributors

[![heaton21](https://avatars.githubusercontent.com/u/47715306?v=4)](https://github.com/heaton21 "heaton21 (6 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M299](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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