mezzio / mezzio-router
Router subcomponent for Mezzio
Fund package maintenance!
Community Bridge
Installs: 409 549
Dependents: 34
Suggesters: 2
Security: 0
Stars: 15
Watchers: 14
Forks: 11
Open Issues: 2
Requires
- php: ^7.3 || ~8.0.0
- fig/http-message-util: ^1.1.2
- laminas/laminas-zendframework-bridge: ^1.0
- psr/container: ^1.0
- psr/http-message: ^1.0.1
- psr/http-server-middleware: ^1.0
Requires (Dev)
- laminas/laminas-coding-standard: ~2.1.0
- malukenho/docheader: ^0.1.6
- phpspec/prophecy: ^1.9
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: ^9.4.1
- psalm/plugin-phpunit: ^0.15.0
- vimeo/psalm: ^4.3
Suggests
- mezzio/mezzio-aurarouter: ^3.0 to use the Aura.Router routing adapter
- mezzio/mezzio-fastroute: ^3.0 to use the FastRoute routing adapter
- mezzio/mezzio-laminasrouter: ^3.0 to use the laminas-router routing adapter
Replaces
This package is auto-updated.
Last update: 2021-02-06 16:59:55 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.