PHPackages                             cmoclyn/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cmoclyn/router

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

cmoclyn/router
==============

08

Since Jan 17Pushed 8y agoCompare

[ Source](https://github.com/cmoclyn/router)[ Packagist](https://packagist.org/packages/cmoclyn/router)[ RSS](/packages/cmoclyn-router/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Router for PHP
==============

[](#router-for-php)

Documentation
-------------

[](#documentation)

---

There is 2 versions of this Router, one for PHP 7 (branch master-7) and one for PHP 5.6 (branch master-5.6)

### .htaccess example

[](#htaccess-example)

```
RewriteEngine On

RewriteCond %{REQUEST_URI} "^.*\.css" # If CSS
RewriteRule "^(.*)$" "web/css/$1" [END] # CSS folder

RewriteCond %{HTTP_HOST} "^localhost" # If localhost
RewriteRule "^(.*)$" "web/web_dev.php" [END] # Dev

RewriteRule "^(.*)$" "web/web.php" [END] # Prod

```

### Use the router

[](#use-the-router)

To use the router, you just have to create a `.htaccess` like the above's one, at the root project, and create a `web` folder in which you will put `web.php`, `web_dev.php` and all the resources you need.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1291bbc0813838f4e3a33a3f077ebad07f8bd023fddce3bde579d34a52763e70?d=identicon)[cmoclyn](/maintainers/cmoclyn)

### Embed Badge

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

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

PHPackages © 2026

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