bogosoft/http-routing

There is no license information available for the latest version (3.2.0) of this package.

Contracts and minimal implementations to support HTTP request routing.

3.2.0 2020-11-14 15:23 UTC

This package is auto-updated.

Last update: 2024-04-19 22:01:01 UTC


README

This library contains contracts for abstracting an HTTP request router as a PSR-15 middleware component.

Although this library contains minimal implementations, it is intended mainly to provide implementation-ready contracts.

The focal point of the library--the Router class--is a PSR-15 middleware component with the following responsibilities:

  • Resolve an HTTP request to an action, and a sequence of zero or more action filters.
  • Invoke the filtered action to obtain an action result.
  • Apply the action result to an HTTP response.

Requirements

  • PHP >=7.4

Installation

composer require bogosoft/http-routing