PSR 15
Lightweight implementation of PSR-15 using Chain of Responsibility pattern with preparation for the PSR-17 factories.
Table of contents
Library consists of 2 abstract classes:
-
AbstractMiddlewareChainItem - Abstract base class for Middleware chain item
- Middleware chain item can be prepended, or appended
- Chain can be created via MiddlewareChainFactory
-
AbstractRequestHandler - Abstract base class for Request Handler
- can be created from
callable
- can be created from
Installation
composer require delvesoft/psr15
Highly inspired by the package https://github.com/noglitchyo/middleware-collection-request-handler