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

ActiveLibrary[Framework](/categories/framework)

adrianschubek/router
====================

A routing library for PHP

1.0(6y ago)2101MITPHPPHP &gt;=7.4

Since Apr 14Pushed 5y ago2 watchersCompare

[ Source](https://github.com/adrianschubek/router)[ Packagist](https://packagist.org/packages/adrianschubek/router)[ Docs](https://docs.adriansoftware.de/router)[ RSS](/packages/adrianschubek-router/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (1)

Router
======

[](#router)

[![Latest Stable Version](https://camo.githubusercontent.com/f7fbeda697a154d852d45500e30ef3f0ed0d6da7ffb87998276ececcb45d0e1c/68747470733a2f2f706f7365722e707567782e6f72672f61647269616e7363687562656b2f726f757465722f76)](//packagist.org/packages/adrianschubek/router)[![License](https://camo.githubusercontent.com/b188de07a00b3684e909bad0b3b7f4d6efd724e7db8d8ecb251c82112bafdca0/68747470733a2f2f706f7365722e707567782e6f72672f61647269616e7363687562656b2f726f757465722f6c6963656e7365)](//packagist.org/packages/adrianschubek/router)

Features
--------

[](#features)

- Easy to use
- Supports GET, POST, PUT, PATCH, DELETE &amp; OPTIONS verbs
- Supports Route Parameters (Regex support)
- Middleware
- Route Groups
- Reverse Routing (Generate URL from Route Name)
- Subdirectory Routing
- Error Routes
- Implement Custom Resolver &amp; Dispatcher

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

[](#installation)

```
composer require adrianschubek/router

```

Example
-------

[](#example)

```
use adrianschubek\Routing\Route;
use adrianschubek\Routing\Router;

$r = new Router();

$r->get("/", function () {
    echo "Hello stranger!";
});

$r->get("/[a]/[b]", function ($a, $b) {
    echo $a + $b;
})->where("([0-9]+)");

$r->dispatch();
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

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

2215d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/500782457c7bfa139f0c77fc085cceaf6114c39ff2e7551c32bedb36af2a759b?d=identicon)[adrian.schubek](/maintainers/adrian.schubek)

---

Top Contributors

[![adrianschubek](https://avatars.githubusercontent.com/u/19362349?v=4)](https://github.com/adrianschubek "adrianschubek (13 commits)")

---

Tags

responserequestrouterrouting

### Embed Badge

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

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

###  Alternatives

[klein/klein

A lightning fast router for PHP

2.7k1.1M30](/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.

696214.6k17](/packages/pecee-simple-router)[htmlburger/wpemerge

A micro framework which modernizes WordPress as a CMS development by providing tools to implement MVC and more.

456137.8k8](/packages/htmlburger-wpemerge)[vlucas/bulletphp

A heierarchical resource-oriented micro-framework built on nested closures instead of route-based callbacks

41949.9k1](/packages/vlucas-bulletphp)[izniburak/router

simple router class for php

23522.6k7](/packages/izniburak-router)[vectorface/snappy-router

A quick and snappy routing framework.

4614.7k](/packages/vectorface-snappy-router)

PHPackages © 2026

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