Weave 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

Request Headers Forwarder Guzzle Bundle Laravel Package

m6web/request-headers-forwarder-guzzle-bundle

A Symfony bundle that adds a Guzzle plugin for forwarding incoming HTTP request headers onto outgoing Guzzle requests, helping propagate correlation IDs, authorization, and tracing headers across service calls with minimal configuration.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit

  • This is a Symfony Bundle, not a Laravel package. It cannot be installed and used directly in a Laravel application because Laravel does not use Symfony’s bundle registration/runtime model in the same way.
  • The underlying pattern—copying selected headers from the inbound request into Guzzle sub-requests—is relevant, but the package itself is a poor architectural fit for Laravel.
  • In Laravel, the equivalent belongs in HTTP client middleware or a small internal package, not a third-party Symfony bundle.

Integration feasibility

  • Very low as a dependency: archived, last release in 2017, zero stars, zero dependents, and likely constrained to older Symfony/Guzzle/PHP versions.
  • Composer conflicts with modern Laravel, Guzzle 7, and PHP 8+ are likely. Attempting installation would create more risk than value.
  • Feasible only as a reference implementation. A TPM should treat it as a design pattern to reimplement, not a package to adopt.

Technical risk

  • High. The package is abandoned and security-sensitive by nature: forwarding headers can leak Authorization, cookies, tenant identifiers, tracing headers, or internal routing metadata to downstream services.
  • Compatibility with current PHP/Laravel/Guzzle versions is unknown and probably poor.
  • No upstream maintenance means no security patches, framework compatibility updates, or bug fixes.

Key questions

  • Which headers actually need to be propagated, and why?
  • Are outbound calls internal, trusted-partner, or public? Header trust boundaries must be explicit.
  • Can this be solved with Laravel’s HTTP client global middleware or a Guzzle middleware in a few hours?
  • Is there a maintained alternative, gateway/service-mesh solution, or observability standard already in use?
  • What security review is required before forwarding auth, tenant, or PII-adjacent headers?

Integration Approach

Stack fit

  • Laravel’s HTTP client is built on Guzzle, so a Guzzle middleware or Laravel global request middleware is the natural implementation point.
  • Do not add the Symfony bundle to a Laravel application. Instead, implement an explicit allowlist-based header forwarder.
  • Start with a narrow allowlist: correlation ID, trace ID, tenant ID, locale, and only auth headers for explicitly trusted upstreams.

Migration path

  • Use the package only to understand the intent: read selected inbound headers and attach them to outbound Guzzle requests.
  • Reimplement the behavior internally with tests and configuration. Keep the allowlist in config, not code.
  • Document which headers are forwarded, to which services, and under what trust conditions.

Compatibility

  • Assume incompatibility with modern Laravel and PHP. Validate only in an isolated spike if necessary; do not plan production use.
  • Target current Laravel HTTP client behavior and Guzzle 7+ on supported PHP versions.

Sequencing

  1. Confirm the business need and inventory required headers.
  2. Security-review the allowlist and trust boundaries.
  3. Build a small Laravel/Guzzle middleware proof of concept.
  4. Add tests for propagation, non-propagation, and leakage prevention.
  5. Roll out behind a feature flag to non-production first.
  6. Monitor outbound requests before broad enablement.

Operational Impact

Maintenance

  • No upstream maintenance. Any adoption creates an immediate fork/maintenance burden.
  • A small internal implementation is likely cheaper to maintain than carrying an abandoned Symfony bundle into a Laravel stack.

Support

  • No vendor support, no active community, zero dependents, and archived status. Internal ownership is mandatory if the behavior is needed.

Scaling

  • Runtime overhead is negligible for normal header copying. The real scaling concern is governance: uncontrolled header propagation can leak data across service boundaries.
  • Enforce header size limits, avoid copying unbounded header sets, and keep the allowlist reviewed as services are added.

Failure modes

  • Missing expected headers can break downstream authentication, routing, or observability.
  • Over-forwarding can leak credentials or tenant data to unintended services.
  • Header injection and inconsistent behavior across services are realistic risks.
  • Framework upgrades may expose incompatibility if the abandoned package were used.

Ramp-up

  • Low for Laravel developers familiar with middleware and Guzzle; the concept is simple.
  • The real ramp-up is security and architecture review. Estimate roughly 1–3 days for a safe internal implementation, tests, and documentation, excluding broader security approval.
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.
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk