mezzio/mezzio-router

Router subcomponent for Mezzio

Fund package maintenance!
Community Bridge

Installs: 4 507 424

Dependents: 52

Suggesters: 3

Security: 0

Stars: 26

Watchers: 16

Forks: 11

Open Issues: 3

pkg:composer/mezzio/mezzio-router

4.1.0 2025-10-11 09:16 UTC

README

Build Status Coverage Status

Router subcomponent for Mezzio.

This package provides the following classes and interfaces:

  • RouterInterface, a generic interface to implement for providing routing capabilities around PSR-7 ServerRequest messages.
  • Route, a value object describing routed middleware.
  • RouteResult, a value object describing the results of routing.

Installation

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

$ composer require mezzio/mezzio-router

We currently support and provide the following routing integrations:

Documentation

Mezzio provides routing documentation.