Router subcomponent for Expressive
PHP
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs Updated ISSUE and PR templates Nov 8, 2017
src Allow varying `RouteMiddlewareFactory` behavior Jun 5, 2018
test Allow varying `RouteMiddlewareFactory` behavior Jun 5, 2018
.coveralls.yml Remove deprecated src_dir Sep 28, 2016
.docheader Adds space between file-level docblock and first directive Dec 6, 2017
.gitattributes
.gitignore Updated .gitattributes and .gitignore - natsort Nov 8, 2017
.travis.yml Merge branch 'hotfix/44' into release-3.0.0 Dec 14, 2017
CHANGELOG.md Bumped to next dev version (3.1.1) Jun 5, 2018
LICENSE.md Updated year in LICENSE.md Mar 6, 2018
README.md Updated coverage badge in README.md Nov 8, 2017
composer.json
composer.lock
phpcs.xml add/update phpcs.xml Nov 13, 2016
phpunit.xml.dist

README.md

zend-expressive-router

Build Status Coverage Status

Router subcomponent for Expressive.

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 Expressive. However, it can be used standalone to provide a generic way to provide routed PSR-7 middleware. To do this, use:

$ composer require zendframework/zend-expressive-router

We currently support and provide the following routing integrations:

  • Aura.Router: composer require zendframework/zend-expressive-aurarouter
  • FastRoute: composer require zendframework/zend-expressive-fastroute
  • zend-router: composer require zendframework/zend-expressive-zendrouter

Documentation

Expressive provides routing documentation.