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

AbandonedArchivedLibrary[Framework](/categories/framework)

systream/router
===============

1.3.0(9y ago)026MITPHPPHP &gt;=5.4.0 || &gt;= 7.0

Since Sep 19Pushed 9y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (11)Used By (0)

Router
======

[](#router)

Installation
------------

[](#installation)

You can install this package via [packagist.org](https://packagist.org/packages/systream/router) with [composer](https://getcomposer.org/).

`composer require systream/router`

composer.json:

```
"require": {
    "systream/router": "1.*"
}
```

This library requires `php 5.6` or higher, but also works on php 5.4.

Usage
-----

[](#usage)

### Setup routing

[](#setup-routing)

```
$route = new Router();
$route->addRoute(new SimpleRouting('/foo', new TestController()));
$route->addRoute(new SimpleRouting('/foo/{id}', new TestController2()));
$route->addRoute(new PathBasedRouting('app/Controller/Api', '\MyAppNamespace\Controller\Api'));
$route->addRoute(new FinalMatchRouting(new NotFoundController()));
$serverRequest = ServerRequestFactory::fromGlobals();
$route->dispatch($serverRequest, new SapiEmitter());
```

Test
----

[](#test)

[![Build Status](https://camo.githubusercontent.com/1cb40aaf05776f5e36450f99b85cbd70b368eb6281610a6017c1eb65cc8c681d/68747470733a2f2f7472617669732d63692e6f72672f737973747265616d2f726f757465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/systream/router)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

10

Last Release

3519d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c5ea6e7d8143a1fba541e1f41419cf36a4f970806d4bd91094d3b46177aea6d?d=identicon)[systream](/maintainers/systream)

---

Top Contributors

[![systream](https://avatars.githubusercontent.com/u/1583029?v=4)](https://github.com/systream "systream (14 commits)")

---

Tags

routercontroller

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[slim/slim

Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs

12.3k52.9M1.4k](/packages/slim-slim)[klein/klein

A lightning fast router for PHP

2.7k1.1M31](/packages/klein-klein)[pecee/simple-router

Simple, fast PHP router that is easy to get integrated and in almost any project. Heavily inspired by the Laravel router.

697231.0k18](/packages/pecee-simple-router)[yiisoft/router

Yii router

62360.1k26](/packages/yiisoft-router)[yiisoft/router-fastroute

Yii router FastRoute adapter

41320.0k19](/packages/yiisoft-router-fastroute)[joomla/router

Joomla Router Package

10323.3k1](/packages/joomla-router)

PHPackages © 2026

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