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

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

fmihel/php-router
=================

php,router

v4.0.0(3y ago)01.3k1MITPHP

Since Dec 15Pushed 3y ago1 watchersCompare

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

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

php-router
==========

[](#php-router)

simple php router

---

Install
-------

[](#install)

Server side

`composer require fmihel/php-router`

Client side

`npm i fmihel-php-router-client`

---

Simple use
----------

[](#simple-use)

create *index.js*

```
import router from 'fmihel-php-router-client';

router({
    id:'MSG_SEND',
    data:{ msg: 'send msg to server',any_num:10,arr:[1,32,4,2]},
})
.then(data=>{
    console.info(data);
})
.catch(e=>{
    console.error(e);
})
```

create *mod1.php*

```

```

create *index.php*

```

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity68

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

Recently: every ~124 days

Total

27

Last Release

1185d ago

Major Versions

v0.1.0 → v1.1.02019-12-26

v1.2.0 → v2.0.02020-02-11

v2.2.0 → v3.0.02021-06-22

v3.2.3 → v4.0.02022-10-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/fcda07512b04fb579a8f8d01eb78783255a65a7a90cc3d953bcf6b3a00bb3c40?d=identicon)[fmihel](/maintainers/fmihel)

---

Top Contributors

[![fmihel](https://avatars.githubusercontent.com/u/10561794?v=4)](https://github.com/fmihel "fmihel (16 commits)")

### Embed Badge

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

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

###  Alternatives

[cweagans/composer-configurable-plugin

Provides a lightweight configuration system for Composer plugins.

101.9M2](/packages/cweagans-composer-configurable-plugin)

PHPackages © 2026

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