PHPackages                             zendframework/zend-expressive-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. zendframework/zend-expressive-router

Abandoned → [mezzio/mezzio-router](/?search=mezzio%2Fmezzio-router)ArchivedLibrary[HTTP &amp; Networking](/categories/http)

zendframework/zend-expressive-router
====================================

Router subcomponent for Expressive

3.1.1(6y ago)291.9M↓20.8%12[2 PRs](https://github.com/zendframework/zend-expressive-router/pulls)20BSD-3-ClausePHPPHP ^7.1

Since Dec 2Pushed 6y ago9 watchersCompare

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

READMEChangelog (10)Dependencies (7)Versions (30)Used By (20)

zend-expressive-router
======================

[](#zend-expressive-router)

> ## Repository abandoned 2019-12-31
>
> [](#repository-abandoned-2019-12-31)
>
> This repository has moved to [mezzio/mezzio-router](https://github.com/mezzio/mezzio-router).

[![Build Status](https://camo.githubusercontent.com/fac23340665395d9ce3e1e328e042a9409150f6f4055e0260d8b314cd88bb276/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7a656e646672616d65776f726b2f7a656e642d657870726573736976652d726f757465722e7376673f6272616e63683d6d6173746572)](https://secure.travis-ci.org/zendframework/zend-expressive-router)[![Coverage Status](https://camo.githubusercontent.com/ea1db44cb12174d412780e4b792796bc43224d8553113a8aaf73ae46b25df60f/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7a656e646672616d65776f726b2f7a656e642d657870726573736976652d726f757465722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/zendframework/zend-expressive-router?branch=master)

Router subcomponent for [Expressive](https://github.com/zendframework/zend-expressive).

This package provides the following classes and interfaces:

- `RouterInterface`, a generic interface to implement for providing routing capabilities around [PSR-7](http://www.php-fig.org/psr/psr-7/)`ServerRequest` messages.
- `Route`, a value object describing routed middleware.
- `RouteResult`, a value object describing the results of routing.

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

[](#installation)

Typically, you will install this when installing Expressive. However, it can be used standalone to provide a generic way to provide routed PSR-7 middleware. To do this, use:

```
$ composer require zendframework/zend-expressive-router
```

We currently support and provide the following routing integrations:

- [Aura.Router](https://github.com/auraphp/Aura.Router): `composer require zendframework/zend-expressive-aurarouter`
- [FastRoute](https://github.com/nikic/FastRoute): `composer require zendframework/zend-expressive-fastroute`
- [zend-router](https://github.com/zendframework/zend-router): `composer require zendframework/zend-expressive-zendrouter`

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

[](#documentation)

Expressive provides [routing documentation](https://docs.zendframework.com/zend-expressive/features/router/intro/).

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity50

Moderate usage in the ecosystem

Community33

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 63.2% 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 ~52 days

Recently: every ~144 days

Total

28

Last Release

2452d ago

Major Versions

1.3.2 → 2.0.02017-01-07

2.3.0 → 3.0.0alpha12018-02-01

2.4.1 → 3.0.0rc52018-03-14

PHP version history (4 changes)1.0.0PHP &gt;=5.5

1.2.0PHP ^5.5 || ^7.0

1.3.0PHP ^5.6 || ^7.0

3.0.0alpha1PHP ^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/296074?v=4)[Zend Framework](/maintainers/zendframework)[@zendframework](https://github.com/zendframework)

---

Top Contributors

[![weierophinney](https://avatars.githubusercontent.com/u/25943?v=4)](https://github.com/weierophinney "weierophinney (285 commits)")[![michalbundyra](https://avatars.githubusercontent.com/u/7423207?v=4)](https://github.com/michalbundyra "michalbundyra (91 commits)")[![michaelmoussa](https://avatars.githubusercontent.com/u/183833?v=4)](https://github.com/michaelmoussa "michaelmoussa (45 commits)")[![geerteltink](https://avatars.githubusercontent.com/u/9497586?v=4)](https://github.com/geerteltink "geerteltink (15 commits)")[![Koopzington](https://avatars.githubusercontent.com/u/3015529?v=4)](https://github.com/Koopzington "Koopzington (9 commits)")[![pursehouse](https://avatars.githubusercontent.com/u/3063832?v=4)](https://github.com/pursehouse "pursehouse (3 commits)")[![renanbr](https://avatars.githubusercontent.com/u/350222?v=4)](https://github.com/renanbr "renanbr (1 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (1 commits)")[![DASPRiD](https://avatars.githubusercontent.com/u/233300?v=4)](https://github.com/DASPRiD "DASPRiD (1 commits)")

---

Tags

httppsrpsr-7middlewareZendFrameworkzfexpressivezend-expressive

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zendframework-zend-expressive-router/health.svg)

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

###  Alternatives

[mezzio/mezzio

PSR-15 Middleware Microframework

3923.8M125](/packages/mezzio-mezzio)[sunrise/http-router

A powerful solution as the foundation of your project.

17451.6k10](/packages/sunrise-http-router)[mezzio/mezzio-authentication-oauth2

OAuth2 (server) authentication middleware for Mezzio and PSR-7 applications.

28591.3k3](/packages/mezzio-mezzio-authentication-oauth2)

PHPackages © 2026

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