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
Requires
- php: ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0
- fig/http-message-util: ^1.1.5
- psr/container: ^1.1.2 || ^2.0
- psr/http-factory: ^1.0.2
- psr/http-message: ^1.0.1 || ^2.0.0
- psr/http-server-middleware: ^1.0.2
- webmozart/assert: ^1.11
Requires (Dev)
- laminas/laminas-coding-standard: ~3.1.0
- laminas/laminas-diactoros: ^3.6.0
- laminas/laminas-servicemanager: ^4.4.0
- laminas/laminas-stratigility: ^4.2.0
- phpunit/phpunit: ^11.5.42
- psalm/plugin-phpunit: ^0.19.5
- vimeo/psalm: ^6.13.1
Suggests
- mezzio/mezzio-fastroute: ^3.0 to use the FastRoute routing adapter
- mezzio/mezzio-laminasrouter: ^3.0 to use the laminas-router routing adapter
Conflicts
- 4.2.x-dev
- 4.1.x-dev
- 4.1.0
- 4.0.x-dev
- 4.0.1
- 4.0.0
- 3.19.x-dev
- 3.19.0
- 3.18.x-dev
- 3.18.0
- 3.17.x-dev
- 3.17.0
- 3.16.x-dev
- 3.16.1
- 3.16.0
- 3.15.x-dev
- 3.15.0
- 3.14.x-dev
- 3.14.0
- 3.13.x-dev
- 3.13.0
- 3.12.x-dev
- 3.12.0
- 3.11.x-dev
- 3.11.0
- 3.10.x-dev
- 3.10.0
- 3.9.x-dev
- 3.9.0
- 3.8.x-dev
- 3.8.0
- 3.7.x-dev
- 3.7.0
- 3.6.x-dev
- 3.6.0
- 3.5.x-dev
- 3.5.0
- 3.4.x-dev
- 3.4.0
- 3.3.x-dev
- 3.3.0
- 3.2.x-dev
- 3.2.1
- 3.2.0
- 3.1.x-dev
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 3.0.0rc6
- 3.0.0rc5
- 3.0.0rc4
- 3.0.0rc3
- 3.0.0rc2
- 3.0.0rc1
- 3.0.0alpha3
- 3.0.0alpha2
- 3.0.0alpha1
- 2.4.1
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.0
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.1
- 1.0.0
- dev-3.19.x-merge-up-into-4.0.x_y83U4pZz
- dev-renovate/phpunit-phpunit-12.x
This package is auto-updated.
Last update: 2025-10-11 09:18:56 UTC
README
Router subcomponent for Mezzio.
This package provides the following classes and interfaces:
RouterInterface
, a generic interface to implement for providing routing capabilities around PSR-7ServerRequest
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:
- Aura.Router:
composer require mezzio/mezzio-aurarouter
- FastRoute:
composer require mezzio/mezzio-fastroute
- laminas-router:
composer require mezzio/mezzio-laminasrouter
Documentation
Mezzio provides routing documentation.