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

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

zfegg/global-router
===================

Zend Framework V2 or V3 global route config '/\[:module\[:/controller\[:/action\]\]\]'

1.0.1(9y ago)1212MITPHP

Since Jul 11Pushed 7y ago2 watchersCompare

[ Source](https://github.com/zfegg/global-router)[ Packagist](https://packagist.org/packages/zfegg/global-router)[ Docs](https://github.com/zfegg/global-router)[ RSS](/packages/zfegg-global-router/feed)WikiDiscussions master Synced 1mo ago

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

Zend Framework Global Router - ZF公共路由
=====================================

[](#zend-framework-global-router---zf公共路由)

ZendMvc 自带的 `Zend\Mvc\ModuleRouteListener` 不方便, 每新的 `Controller` 都需要在 `ControllerManager` 配置下. `Zfegg\GlobalRouter\GlobalModuleRouteListener`

Installation - 安装
-----------------

[](#installation---安装)

```
composer require zfegg/global-router

```

Usage - 使用举例
------------

[](#usage---使用举例)

首先, 在 `config/modules.config.php` 中添加模块加载.

```
return [
    //... Your modules
    'Zfegg\\GlobalRouter'
];

```

默认路由方式: `/module/controller/action/param1/value1/param2/value2/...` , 类似ZF1默认路由

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3589d ago

### Community

Maintainers

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

---

Top Contributors

[![Moln](https://avatars.githubusercontent.com/u/2050694?v=4)](https://github.com/Moln "Moln (2 commits)")

---

Tags

zf2routeglobalzfegg

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[league/route

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

6633.1M116](/packages/league-route)[aura/router

Powerful, flexible web routing for PSR-7 requests.

5231.5M67](/packages/aura-router)[zfr/zfr-cors

Zend Framework module that let you deal with CORS requests

611.2M3](/packages/zfr-zfr-cors)[coffeecode/router

A classic CoffeeCode Router is easy, fast and extremely uncomplicated. Create and manage your routes in minutes!

181111.1k5](/packages/coffeecode-router)[pmjones/auto-route

Automatically routes HTTP request to action classes.

20158.6k6](/packages/pmjones-auto-route)[miladrahimi/phprouter

A powerful, lightweight, and very fast HTTP URL router for PHP projects.

20832.6k2](/packages/miladrahimi-phprouter)

PHPackages © 2026

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