Download the PHP package jowy/routing-middleware without Composer
On this page you can find all versions of the php package jowy/routing-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jowy/routing-middleware
More information about jowy/routing-middleware
Files in jowy/routing-middleware
Informations about the package routing-middleware
Routing Middleware
PSR 7 routing middleware based on nikic/fast-route
Installation & Requirements
Install using composer
This library has following dependencies:
zendframework/zend-diactoros
, used for PSR 7 implementationzendframework/zend-stratigility
, provide abstraction for PSR 7 middlewarenikic/fast-route
, used for routingdoctrine/cache
, used for caching routes
Usage
Usage on zendframework/zend-stratigility
Usage on relay/relay
It advised to use container to resolve middleware when using relay/relay
Options
All options is in array, with key => value format.
-
collection (callable or string) contains registered route from
RouteCollector
optionally you use class instead of closure for handling matched request
-
generator (object) implementation of
FastRoute\DataGenerator
-
parser (object) implementation of
FastRoute\RouteParser
-
dispatcher (callable) callable that return implementation of
FastRoute\Dispatcher
-
cache (boolean) toggle routes caching, default value is false
- cacheDriver (object)
if
cache
is enabled you have to pass this param to options. It must contain implementation ofDoctrine\Common\Cache\Cache
License
MIT, see LICENSE
All versions of routing-middleware with dependencies
zendframework/zend-diactoros Version ^1.1
nikic/fast-route Version ^0.6
doctrine/cache Version ^1.4
zendframework/zend-stratigility Version ^1.0
jowy/exception-handling-middleware Version ^1.0