delvesoft / psr15
PSR-15 implementation with PSR-17 factories
Installs: 775
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/delvesoft/psr15
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-09-18 18:48:33 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