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

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

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

PSR-15 Middleware Microframework

3.2.1(7y ago)7811.7M—6.1%191[15 issues](https://github.com/zendframework/zend-expressive/issues)[1 PRs](https://github.com/zendframework/zend-expressive/pulls)20BSD-3-ClausePHPPHP ^7.1

Since Aug 26Pushed 6y ago102 watchersCompare

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

READMEChangelog (10)Dependencies (20)Versions (62)Used By (20)

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

[](#zend-expressive)

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

[![Build Status](https://camo.githubusercontent.com/1a486306f0a444743158aa25100c48007174d017f78d9a0a0af9250ca77ef53b/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7a656e646672616d65776f726b2f7a656e642d657870726573736976652e7376673f6272616e63683d6d6173746572)](https://secure.travis-ci.org/zendframework/zend-expressive)[![Coverage Status](https://camo.githubusercontent.com/498aa048243896cf610651de63b572500dd7c3b173c1ae4f857543c1524b90e6/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7a656e646672616d65776f726b2f7a656e642d657870726573736976652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/zendframework/zend-expressive?branch=master)

*Develop PSR-7 middleware applications in minutes!*

zend-expressive builds on [zend-stratigility](https://github.com/zendframework/zend-stratigility)to provide a minimalist PSR-7 middleware framework for PHP, with the following features:

- Routing. Choose your own router; we support:
    - [Aura.Router](https://github.com/auraphp/Aura.Router)
    - [FastRoute](https://github.com/nikic/FastRoute)
    - [zend-router](https://github.com/zendframework/zend-expressive-router)
- DI Containers, via [PSR-11 Container](https://github.com/php-fig/container). Middleware matched via routing is retrieved from the composed container.
- Optionally, templating. We support:
    - [Plates](http://platesphp.com/)
    - [Twig](http://twig.sensiolabs.org/)
    - [ZF2's PhpRenderer](https://github.com/zendframework/zend-view)

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

[](#installation)

We provide two ways to install Expressive, both using [Composer](https://getcomposer.org): via our [skeleton project and installer](https://github.com/zendframework/zend-expressive-skeleton), or manually.

### Using the skeleton + installer

[](#using-the-skeleton--installer)

The simplest way to install and get started is using the skeleton project, which includes installer scripts for choosing a router, dependency injection container, and optionally a template renderer and/or error handler. The skeleton also provides configuration for officially supported dependencies.

To use the skeleton, use Composer's `create-project` command:

```
$ composer create-project zendframework/zend-expressive-skeleton
```

This will prompt you through choosing your dependencies, and then create and install the project in the `` (omitting the `` will create and install in a `zend-expressive-skeleton/` directory).

### Manual Composer installation

[](#manual-composer-installation)

You can install Expressive standalone using Composer:

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

However, at this point, Expressive is not usable, as you need to supply minimally:

- a router.
- a dependency injection container.

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-expressive-router): `composer require zendframework/zend-expressive-zendrouter`

We recommend using a dependency injection container, and typehint against [PSR-11 Container](https://github.com/php-fig/container). We can recommend the following implementations:

- [zend-servicemanager](https://github.com/zendframework/zend-servicemanager): `composer require zendframework/zend-servicemanager`
- [Pimple](https://github.com/silexphp/Pimple) (see [docs](docs/book/features/container/pimple.md) for more details): `composer require zendframework/zend-pimple-config`
- [Aura.Di](https://github.com/auraphp/Aura.Di) (see [docs](docs/book/features/container/aura-di.md) for more details): `composer require zendframework/zend-auradi-config`

Additionally, you may optionally want to install a template renderer implementation, and/or an error handling integration. These are covered in the documentation.

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

[](#documentation)

Documentation is [in the doc tree](docs/book/), and can be compiled using [mkdocs](http://www.mkdocs.org):

```
$ mkdocs build
```

Additionally, public-facing, browseable documentation is available at

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity63

Solid adoption and visibility

Community50

Growing community involvement

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 76.4% 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 ~20 days

Recently: every ~53 days

Total

59

Last Release

2748d ago

Major Versions

0.5.3 → 1.0.0rc12015-10-20

1.1.1 → 2.0.02017-03-07

2.1.0 → 3.0.0alpha12018-02-05

2.2.0 → 3.0.0rc42018-03-13

2.2.1 → 3.0.12018-03-19

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

1.0.0rc3PHP ^5.5 || ^7.0

1.0.2PHP ^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 (1734 commits)")[![michalbundyra](https://avatars.githubusercontent.com/u/7423207?v=4)](https://github.com/michalbundyra "michalbundyra (129 commits)")[![geerteltink](https://avatars.githubusercontent.com/u/9497586?v=4)](https://github.com/geerteltink "geerteltink (81 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (56 commits)")[![ezimuel](https://avatars.githubusercontent.com/u/475967?v=4)](https://github.com/ezimuel "ezimuel (38 commits)")[![pine3ree](https://avatars.githubusercontent.com/u/3229979?v=4)](https://github.com/pine3ree "pine3ree (34 commits)")[![Maks3w](https://avatars.githubusercontent.com/u/1301698?v=4)](https://github.com/Maks3w "Maks3w (18 commits)")[![michaelmoussa](https://avatars.githubusercontent.com/u/183833?v=4)](https://github.com/michaelmoussa "michaelmoussa (17 commits)")[![bakura10](https://avatars.githubusercontent.com/u/1198915?v=4)](https://github.com/bakura10 "bakura10 (16 commits)")[![mtymek](https://avatars.githubusercontent.com/u/777893?v=4)](https://github.com/mtymek "mtymek (16 commits)")[![froschdesign](https://avatars.githubusercontent.com/u/103362?v=4)](https://github.com/froschdesign "froschdesign (14 commits)")[![kynx](https://avatars.githubusercontent.com/u/1320145?v=4)](https://github.com/kynx "kynx (14 commits)")[![snapshotpl](https://avatars.githubusercontent.com/u/312655?v=4)](https://github.com/snapshotpl "snapshotpl (13 commits)")[![danizord](https://avatars.githubusercontent.com/u/1850941?v=4)](https://github.com/danizord "danizord (9 commits)")[![mwillbanks](https://avatars.githubusercontent.com/u/38209?v=4)](https://github.com/mwillbanks "mwillbanks (9 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (8 commits)")[![spiffyjr](https://avatars.githubusercontent.com/u/2760734?v=4)](https://github.com/spiffyjr "spiffyjr (8 commits)")[![Xerkus](https://avatars.githubusercontent.com/u/725842?v=4)](https://github.com/Xerkus "Xerkus (7 commits)")[![harikt](https://avatars.githubusercontent.com/u/120454?v=4)](https://github.com/harikt "harikt (6 commits)")[![acelaya](https://avatars.githubusercontent.com/u/2719332?v=4)](https://github.com/acelaya "acelaya (6 commits)")

---

Tags

microframeworkmicroservicemiddlewaremiddleware-pipelinephpphp71psr-11psr-15psr-7zend-expressivezend-frameworkhttppsrpsr-7middlewarePSR-11psr-15ZendFrameworkzfexpressivezend-expressive

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[mezzio/mezzio

PSR-15 Middleware Microframework

3883.6M97](/packages/mezzio-mezzio)[mezzio/mezzio-authentication

Authentication middleware for Mezzio and PSR-7 applications

121.6M26](/packages/mezzio-mezzio-authentication)

PHPackages © 2026

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