PHPackages                             rosem/route - 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. rosem/route

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

rosem/route
===========

The route management package

v0.0.1(7y ago)011MITPHPPHP ~7.2

Since Jun 1Pushed 7y ago1 watchersCompare

[ Source](https://github.com/rosemlab/route)[ Packagist](https://packagist.org/packages/rosem/route)[ Docs](https://rosemlab.github.io/route)[ RSS](/packages/rosem-route/feed)WikiDiscussions master Synced 2mo ago

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

Rosem route management
======================

[](#rosem-route-management)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8ef1f40ac6b584da05303ca790b3bff9e826cc4b5a0445322a9e51e1d78de3fa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f73656d2f726f7574652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rosem/route)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/2518cdc1db5816401b6222853213ac3ab7a8f26a81757506f4d4f28efab5e8a9/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f726f73656d2f726f7574652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/rosem/route)[![Coverage Status](https://camo.githubusercontent.com/0660ceb2c253aa78f31eb55e462f68cddc5e40d9100307c8ce721b02cb5a80cd/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f726f73656d2f726f7574652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/rosem/route/code-structure)[![Quality Score](https://camo.githubusercontent.com/b3c957eeb624cf160a428d112d9419664799dc2277c46342aad230e5edfcb804/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f726f73656d2f726f7574652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/rosem/route)[![Total Downloads](https://camo.githubusercontent.com/96f118521f7960719c107b3098ee8beb4d0313034753164d3fe6ca9799548672/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f73656d2f726f7574652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rosem/route)

Structure
---------

[](#structure)

If any of the following are applicable to your project, then the directory structure should follow industry best practices by being named the following.

```
bin/
config/
src/
tests/
vendor/

```

Install
-------

[](#install)

Via Composer

```
$ composer require rosem/route
```

Usage
-----

[](#usage)

```
$router = new Rosem\Route\Router();

$router->addRoute('GET', '/user/{id:\d+}', 'handle')
    ->addMiddleware('Auth', ['setType' => 'digest'])
    ->addMiddleware('CSRF');

$result = $router->dispatch('GET', '/user/123');

echo $result === [
    // HTTP status code
    0 => 200,
    // Handler
    1 => 'handle',
    // Middleware list
    2 => [
         0 => [
            0 => 'Auth',
            1 => [
                'setName' => 'digest',
            ]
         ],
         1 => [
            0 => 'CSRF',
            1 => []
         ],
    ],
    // Variables list
    3 => [
         'id' => '123',
    ],
];
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Roman Shevchenko](https://github.com/roshecode)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

2904d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d2ab7f5dbb4cab7bee737d695c85d61d19a368d7c4117276a8df7c65e16e3c9?d=identicon)[roshecode](/maintainers/roshecode)

---

Top Contributors

[![roshecode](https://avatars.githubusercontent.com/u/13917198?v=4)](https://github.com/roshecode "roshecode (23 commits)")

---

Tags

routerrouterosem

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/rosem-route/health.svg)

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

###  Alternatives

[bramus/router

A lightweight and simple object oriented PHP Router

1.1k458.8k49](/packages/bramus-router)[izniburak/laravel-auto-routes

Auto Route Generating (Auto-Discovery) Package for Laravel

23645.3k](/packages/izniburak-laravel-auto-routes)[illuminatech/url-trailing-slash

Allows enforcing URL routes with or without trailing slash

50216.9k](/packages/illuminatech-url-trailing-slash)[clickstorm/go-maps-ext

Google Maps Extension. Simply insert a google map Version 3 without jQuery, calculate a route, images for markers, style maps, KML, categories, responsive and many more.

23159.1k1](/packages/clickstorm-go-maps-ext)[proai/lumen-annotations

Route and event binding annotations for Laravel Lumen

1012.4k](/packages/proai-lumen-annotations)[amendozaaguiar/filament-route-statistics

Filament route statictics viewer

3225.0k1](/packages/amendozaaguiar-filament-route-statistics)

PHPackages © 2026

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