Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Unaltered Psr Http Message Bridge Bundle Laravel Package

loophp/unaltered-psr-http-message-bridge-bundle

Symfony bundle bridging PSR-7 HTTP messages without altering them. Converts between PSR-7 requests/responses and Symfony HttpFoundation safely, preserving headers, body streams, and URIs—useful when integrating PSR-7 middleware or clients in Symfony apps.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • API/HTTP Layer Standardization: Enables consistent PSR-7 HTTP message handling across Symfony/Laravel applications without modifying query parameters, simplifying integration with PSR-compliant libraries (e.g., HTTP clients, middleware, or frameworks).
  • Build vs. Buy: Avoids reinventing PSR-7 bridging logic, reducing development time and technical debt. Ideal for teams already using Symfony/Laravel but needing PSR-7 compatibility (e.g., for microservices or third-party integrations).
  • Roadmap for Extensibility: Supports future-proofing by aligning with PSR standards, easing adoption of new HTTP tooling (e.g., HTTP/2, WebSockets) or middleware (e.g., caching, auth).
  • Use Cases:
    • Legacy System Modernization: Bridge legacy Symfony/Laravel apps to PSR-7-compliant services (e.g., API gateways, message brokers).
    • Middleware Stack: Integrate PSR-15 middleware (e.g., OpenTelemetry, rate limiting) into Laravel/Symfony apps without rewriting request/response handling.
    • Testing: Mock PSR-7 HTTP messages in unit/integration tests for Laravel controllers or services.

When to Consider This Package

  • Adopt if:
    • Your stack includes Symfony/Laravel + PSR-7 dependencies (e.g., HTTP clients like Guzzle PSR-7, middleware libraries).
    • You need unmodified query parameters in PSR-7 messages (e.g., for analytics, logging, or downstream systems).
    • Your team lacks bandwidth to build a custom PSR-7 bridge or maintain one long-term.
    • You’re migrating to microservices or event-driven architectures requiring PSR-7 compatibility.
  • Look elsewhere if:
    • Your app doesn’t use PSR-7 (e.g., pure Laravel with no HTTP layer abstractions).
    • You need active maintenance (last release in 2022; check for forks or alternatives like symfony/http-foundation).
    • Your use case requires modifying query parameters (e.g., sanitization, rewriting) during bridging.
    • You’re using non-Symfony/Laravel frameworks (e.g., Lumen, Silex) with different HTTP message handling.

How to Pitch It (Stakeholders)

For Executives: "This package lets us standardize our HTTP layer on PSR-7—an industry benchmark—without rewriting existing Symfony/Laravel code. It’s a low-risk way to future-proof our APIs, middleware, and integrations (e.g., for observability or third-party services). Think of it as ‘plumbing’ that saves dev time and aligns with modern architectures. The MIT license and minimal overhead make it a no-brainer for adoption."

For Engineering: *"We’re adding a lightweight (~5-star package) to bridge Symfony/Laravel’s native HTTP messages to PSR-7 without altering query params—critical for downstream systems. This enables:

  • PSR-15 middleware (e.g., OpenTelemetry, auth) in Laravel.
  • Seamless testing with PSR-7 mocks.
  • Microservice compatibility with minimal refactoring. Tradeoff: Last updated in 2022, but the core logic is stable. We’ll monitor for forks or alternatives. Ready to merge?"*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony
spatie/flare-daemon-runtime
canaltp/sam-ecore-application-manager-bundle
canaltp/sam-ecore-security-manager-bundle