PHPackages                             qubus/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. [HTTP &amp; Networking](/categories/http)
4. /
5. qubus/router

ActiveLibrary[HTTP &amp; Networking](/categories/http)

qubus/router
============

Qubus Router is a powerful and fast PHP router for PSR-7/PSR-15 messages.

v4.2.2(6mo ago)11451MITPHPPHP &gt;=8.4

Since Sep 3Pushed 6mo agoCompare

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

READMEChangelogDependencies (7)Versions (29)Used By (1)

Qubus Router
============

[](#qubus-router)

Qubus router is a powerful and fast PHP router for PSR-7/PSR-15 messages.

Features
--------

[](#features)

- Basic routing (`GET`, `HEAD`, `POST`, `PUT`, `PATCH`, `UPDATE`, `DELETE`) with support for custom multiple HTTP verbs.
- Regular expression constraints for parameters.
- Named routes.
- Generating url to routes.
- Route parameters.
- Optional route parameters.
- Route groups.
- PSR-7/PSR-15 Middlewares (classes that intercepts before the route is rendered) for routes, groups and controllers.
- Responsable objects.
- Domain/Subdomain routing
- Custom boot managers to rewrite urls
- Option to load routes from JSON file
- and more . . .

Requirements
------------

[](#requirements)

- PHP 8.4+

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

[](#installation)

```
composer require qubus/router

```

Rewrite Rules
-------------

[](#rewrite-rules)

### Apache

[](#apache)

```

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]

```

### Nginx

[](#nginx)

```
location / {
    try_files $uri /index.php;
}

```

More Info
---------

[](#more-info)

- [Documentation](https://docs.qubusphp.com/routing/)
- [Contributing](https://docs.stalframework.com/contributing/)

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance69

Regular maintenance activity

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

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

Recently: every ~5 days

Total

27

Last Release

180d ago

Major Versions

1.1.x-dev → v2.0.02022-08-26

2.0.x-dev → v3.0.02023-08-27

3.0.x-dev → v4.0.02025-08-30

PHP version history (4 changes)v1.0.0PHP ^7.4

v2.0.0PHP &gt;=8.1

v3.0.0PHP &gt;=8.2

v4.0.0PHP &gt;=8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/86d25d805eb5b710fab925600008b72f9f5f11a5206154fcd1ded01794a4d1b8?d=identicon)[nomadicjosh](/maintainers/nomadicjosh)

---

Top Contributors

[![nomadicjosh](https://avatars.githubusercontent.com/u/2042176?v=4)](https://github.com/nomadicjosh "nomadicjosh (65 commits)")

---

Tags

psr-15psr-7qubus-routerrouterpsr-7routerroutingpsr-15url-routing

### Embed Badge

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

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

###  Alternatives

[league/route

Fast routing and dispatch component including PSR-15 middleware, built on top of FastRoute.

6673.2M136](/packages/league-route)[aura/router

Powerful, flexible web routing for PSR-7 requests.

5001.5M69](/packages/aura-router)[middlewares/fast-route

Middleware to use FastRoute

95200.5k15](/packages/middlewares-fast-route)[sunrise/http-router

A powerful solution as the foundation of your project.

17850.9k10](/packages/sunrise-http-router)[divineniiquaye/flight-routing

Flight routing is a simple, fast PHP router that is easy to get integrated with other routers.

152.5k](/packages/divineniiquaye-flight-routing)[middlewares/aura-router

Middleware to use Aura.Router

1110.9k3](/packages/middlewares-aura-router)

PHPackages © 2026

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