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
Requires
- php: >=7.4
- ext-json: *
- psr/http-factory: ^1.0
- psr/http-message: ^1.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
Requires (Dev)
- guzzlehttp/psr7: ^1.6
- phpunit/phpunit: ^9.2
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