Download the PHP package tourze/psr15-chain-request-handler without Composer
On this page you can find all versions of the php package tourze/psr15-chain-request-handler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tourze/psr15-chain-request-handler
More information about tourze/psr15-chain-request-handler
Files in tourze/psr15-chain-request-handler
Download tourze/psr15-chain-request-handler
More information about tourze/psr15-chain-request-handler
Files in tourze/psr15-chain-request-handler
Vendor tourze
Package psr15-chain-request-handler
Short Description PSR-15 Chain Request Handler
License MIT
Package psr15-chain-request-handler
Short Description PSR-15 Chain Request Handler
License MIT
Please rate this library. Is it a good library?
Informations about the package psr15-chain-request-handler
psr15-chain-request-handler
Introduction
A PSR-15 compatible chain request handler for PHP. This package allows you to combine multiple request handlers in a chain, processing HTTP requests sequentially until a handler returns a non-404 response. If all handlers return 404, a final 404 response is returned.
Features
- Chain multiple PSR-15 request handlers
- Automatically skips handlers that return 404
- Simple API for adding handlers dynamically
- Fully PSR-15 compatible
- Well-tested and easy to integrate
Installation
Requirements:
- PHP >= 8.1
- psr/http-message ^1.1|^2.0
- psr/http-server-handler ^1.0
- nyholm/psr7 ^1.8.2
Install via Composer:
Quick Start
Documentation
- API Reference
- See
tests/ChainRequestHandlerTest.php
for usage scenarios
Advanced Usage
- Add handlers dynamically with
$chain->addHandler($handler);
- Handlers are processed in the order they are added
- If no handler returns a non-404 response, the chain returns a 404 with body 'Not Found'
Contributing
- Please submit issues or pull requests via GitHub
- Follow PSR coding standards
- Run tests with PHPUnit before submitting PRs
License
MIT License. See LICENSE for details.
Changelog
See the CHANGELOG for release history and upgrade notes.
All versions of psr15-chain-request-handler with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
psr/http-message Version ^1.1 || ^2.0
psr/http-server-handler Version ^1.0
nyholm/psr7 Version ^1.8.2
psr/http-message Version ^1.1 || ^2.0
psr/http-server-handler Version ^1.0
nyholm/psr7 Version ^1.8.2
The package tourze/psr15-chain-request-handler contains the following files
Loading the files please wait ....