PHPackages                             hkuan/hrouter - 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. hkuan/hrouter

ActiveLibrary

hkuan/hrouter
=============

Simple PHP router class.

v1.0.0.x-dev(9y ago)014MITPHPPHP &gt;=5.3.3

Since Apr 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/huangyaxiong/hRouter)[ Packagist](https://packagist.org/packages/hkuan/hrouter)[ RSS](/packages/hkuan-hrouter/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

HRouter
=======

[](#hrouter)

HRouter is a simple, open source PHP router. It's super small (~150 LOC), fast, and has some great annotated source code. This class allows you to just throw it into your project and start using it immediately.

### Install

[](#install)

If you have Composer, just include Macaw as a project dependency in your `composer.json`. If you don't just install it by downloading the .ZIP file and extracting it to your project directory.

```
require: {
    "hkuan/hrouter": "dev-master"
}

```

### Examples

[](#examples)

First, `use` the Macaw namespace:

```
use /Hkuan/Hrouter\Router;
```

Hrouter is not an object, so you can just make direct operations to the class. Here's the Hello World:

```
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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

3308d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/871098d1484a1b65dfe13c73433e5383c477f16f2d1eebdbb6fb5467cb442db3?d=identicon)[huangyaxiong](/maintainers/huangyaxiong)

---

Top Contributors

[![huangyaxiong](https://avatars.githubusercontent.com/u/13639110?v=4)](https://github.com/huangyaxiong "huangyaxiong (5 commits)")[![phphero](https://avatars.githubusercontent.com/u/7857170?v=4)](https://github.com/phphero "phphero (1 commits)")

### Embed Badge

![Health badge](/badges/hkuan-hrouter/health.svg)

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

PHPackages © 2026

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