delvesoft / psr15
PSR-15 implementation with PSR-17 factories
v1.3.0
2021-03-12 22:59 UTC
Requires
- php: >= 7.3
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
Requires (Dev)
- mockery/mockery: ^1.3
- nyholm/psr7: ^1.2
- phpstan/phpstan: ^0.12.14
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2025-02-18 17:37:45 UTC
README
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