zendframework/zend-expressive-router

This package is abandoned and no longer maintained. The author suggests using the mezzio/mezzio-router package instead.

Router subcomponent for Expressive

3.1.1 2019-10-16 20:06 UTC

README

Repository abandoned 2019-12-31

This repository has moved to mezzio/mezzio-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.