PSR-15 Middleware Microframework
Develop PSR-7 middleware applications in minutes!
mezzio builds on laminas-stratigility to provide a minimalist PSR-7 middleware framework for PHP, with the following features:
We provide two ways to install Mezzio, both using Composer: via our skeleton project and installer, or manually.
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 mezzio/mezzio-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 mezzio-skeleton/ directory).
You can install Mezzio standalone using Composer:
composer require mezzio/mezzioHowever, at this point, Mezzio is not usable, as you need to supply minimally:
We currently support and provide the following routing integrations:
composer require mezzio/mezzio-fastroutecomposer require mezzio/mezzio-laminasrouterWe recommend using a dependency injection container, and typehint against PSR-11 Container. We can recommend the following implementations:
composer require laminas/laminas-servicemanagercomposer require laminas/laminas-pimple-configcomposer require laminas/laminas-auradi-configAdditionally, you may optionally want to install a template renderer implementation, and/or an error handling integration. These are covered in the documentation.
Documentation is in the doc tree, and can be compiled using mkdocs:
mkdocs buildAdditionally, public-facing, browseable documentation is available at
No open issues yet, or sync has not completed.