symfony/psr-http-message-bridge
Symfony PSR-7 Bridge integrates PSR-7 HTTP messages with Symfony’s HttpFoundation. Convert requests and responses between PSR-7 implementations and Symfony components to ease interoperability with middleware and libraries.
symfony/http-foundation) to eliminate inconsistencies in HTTP message processing.Request and PSR-7 interfaces). Reduces technical debt by using a maintained, standards-compliant solution backed by Symfony.nyholm/psr7).nyholm/psr7 in Laravel tests).ServerRequest, Response, StreamInterface) for debugging edge cases (e.g., cookie partitioning, file streams).psr/http-message), which may conflict with existing composer constraints.For Executives: *"This package lets us future-proof Laravel’s HTTP layer by adopting PSR-7, the industry standard for HTTP message interoperability. It’s a zero-cost upgrade—Laravel already uses Symfony’s HTTP components, so we’re just adding a lightweight bridge to unlock:
For Engineering:
*"We’re adding symfony/psr-http-message-bridge to unify Laravel’s HTTP handling with PSR-7, enabling:
nyholm/psr7) in Laravel tests without tight coupling to Symfony’s HttpFoundation.Request/Response and PSR-7 interfaces.
Tradeoffs:Cookie vs. PSR-7 CookieJarInterface).psr/http-message, but Laravel’s illuminate/http already pulls in symfony/http-foundation, so no new risks.
Ready to merge if we’re standardizing on PSR-7 for middleware or cloud-native APIs."For Architects/Tech Leads: *"Key technical benefits:
How can I help you explore Laravel packages today?