Download the PHP package tourze/psr15-symfony-request-request-handler without Composer
On this page you can find all versions of the php package tourze/psr15-symfony-request-request-handler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tourze/psr15-symfony-request-request-handler
More information about tourze/psr15-symfony-request-request-handler
Files in tourze/psr15-symfony-request-request-handler
Package psr15-symfony-request-request-handler
Short Description PSR-15 Symfony Request Handler
License MIT
Informations about the package psr15-symfony-request-request-handler
tourze/psr15-symfony-request-request-handler
中文
A PSR-15 compatible HTTP request handler for integrating Symfony's HttpKernel and HttpFoundation with the PSR-7/PSR-15 ecosystem. This package enables seamless conversion between PSR-7 requests and Symfony requests, providing robust handling for authentication headers, HTTPS proxy forwarding, real IP forwarding, and comprehensive error logging with backtrace details.
Features
- ✅ Complete PSR-15
RequestHandlerInterfaceimplementation - ✅ Bidirectional conversion between PSR-7 ServerRequest and Symfony Request
- ✅ HTTPS proxy header handling (Force-Https)
- ✅ Real IP forwarding support (X-Real-IP)
- ✅ Authorization header processing (Basic, Digest, Bearer)
- ✅ Cookie parsing and $_GET/$_REQUEST global variable setup
- ✅ Comprehensive exception handling with detailed backtraces
- ✅ Internal request/response object access for advanced scenarios
- ✅ High compatibility with Symfony 6.4+ and modern PSR standards
Dependencies
This package requires the following dependencies:
-
Core Requirements:
php: ^8.1- PHP 8.1 or higherpsr/http-message: ^1.0|^2.0- PSR-7 HTTP message interfacespsr/http-server-handler: ^1.0- PSR-15 request handler interfacespsr/log: ^1.0|^2.0|^3.0- PSR-3 logger interface
-
Symfony Components:
symfony/http-kernel: ^6.4|^7.0- Symfony HTTP kernel componentsymfony/http-foundation: ^6.4|^7.0- Symfony HTTP foundationsymfony/psr-http-message-bridge: ^6.4|^7.0- PSR-7/Symfony bridge
- Additional Dependencies:
tourze/backtrace-helper: ^1.0- Enhanced exception tracing
Installation
Requirements:
- PHP ^8.1
- Symfony 6.4+
- PSR-7, PSR-15 compatible packages
Install via Composer:
Quick Start
Key Features
HTTP Processing
- Supports all HTTP methods compatible with Symfony
- Automatic cookie parsing and global variable population ($_GET, $_REQUEST, $_COOKIE)
- Header conversion for maximum PSR-7/Symfony compatibility
Security & Proxy Support
- HTTPS Proxy: Automatically detects
Force-Httpsheader and sets HTTPS mode - Real IP Forwarding: Supports
X-Real-IPheader for load balancer scenarios - Authorization Headers: Comprehensive support for Basic, Digest, and Bearer authentication
Advanced Usage
Error Handling
- Automatic exception logging with detailed backtraces via
tourze/backtrace-helper - Returns formatted error details in response content
- PSR-3 logger integration for centralized error tracking
Contributing
- Please submit issues and pull requests via GitHub
- Follow PSR coding standards
- Ensure all tests pass (
phpunit) - Run static analysis (
phpstan)
License
MIT License. See LICENSE for details.
Changelog
See Git history for detailed changes. Major features and bugfixes are documented in release notes.
All versions of psr15-symfony-request-request-handler with dependencies
psr/http-message Version ^1.1 || ^2.0
psr/http-server-handler Version ^1.0
psr/log Version ^3|^2|^1
symfony/http-foundation Version ^7.3
symfony/http-kernel Version ^7.3
symfony/psr-http-message-bridge Version ^7.3
tourze/backtrace-helper Version 1.*