silencenjoyer / silence-http
HTTP Silence processing system.
0.0.3
2025-07-21 17:07 UTC
Requires
- php: ^8.3.0
- nyholm/psr7-server: ^1.1
- psr/container: ^2.0
- psr/event-dispatcher: ^1.0.0
- psr/http-factory: ^1.1.0
- psr/http-message: ^1.1|^2.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0.0
- silencenjoyer/silence-event: ^0.0
- silencenjoyer/silence-http-spec: ^0.0
- silencenjoyer/silence-routing: ^0.0
Requires (Dev)
- phpstan/phpstan: *
- shipmonk/composer-dependency-analyser: dev-master
- symfony/var-dumper: ^7.3
README
The package provides HTTP kernel functionality for processing HTTP requests. The PSR-15 Middleware chain is involved in the processing. The kernel triggers event so that you can subscribe to these events.
This package is part of the monorepository silencenjoyer/silence, but can be used independently.
โ๏ธ Installation
composer require silencenjoyer/silence-http
๐ Quick start
<?php
๐งฑ Features:
- PSR-15 Middleware chain
- Event triggering
- Injection route handler parameters
- HTTP exceptions hierarchy
๐งช Testing
php vendor/bin/phpunit
๐งฉ Use in the composition of Silence
The package is the core of HTTP request processing in the Silence application.
If you are writing your own package, you can use silencenjoyer/silence-http
as basic algorithm for request handling.
๐ License
This package is distributed under the MIT licence. For more details, see LICENSE.