forci/http-logger-bundle
A Symfony bundle that captures and logs HTTP requests and responses, helping you debug APIs, trace outgoing calls, and inspect traffic in your application. Configurable handlers let you control what gets recorded and where the logs are written.
Illuminate\Http\Client events or a Guzzle middleware (outbound), and a Monolog tap with a correlation-ID processor. Realistic in-house estimate: 2–4 days including tests and a redaction review. This package’s value is as a reference design for field selection, not as a dependency.Adoption criteria — all of which must hold before spending engineering time:
-bundle suffix and Symfony bundle conventions (Kernel::registerBundles(), a DI Extension) are a structural mismatch with Laravel’s service-provider and package-discovery model. Laravel auto-discovery will not register it; you would write the wiring yourself regardless.NOASSERTION license. This is the hard, stop-the-line blocker. GitHub could not detect a recognized license, and absent a clear grant of rights the default is all-rights-reserved. Many organizations cannot approve this at all until counsel reads the actual LICENSE text — or confirms there isn’t one.Look elsewhere — or build — when:
Illuminate\Http\Middleware, the HTTP client’s RequestSending / ResponseReceived / ConnectionFailed events (or Http::global() middleware), Telescope or Pulse for dev/staging visibility, and a Monolog tap in production. All first-party, all maintained, all licensed cleanly.Authorization headers, cookies, tokens, and request bodies are exactly what this class of logger touches. Redaction logic must be yours and reviewed; inheriting it from an unvetted dependency is a compliance liability, not a mitigation.To executives. We evaluated this package and recommend against adoption. Three independent risk flags stack against something that would sit in the request path of every user interaction: it is a Symfony component in a Laravel estate (wrong architecture), it has zero adoption and no maintenance signal, and its license is unclassifiable — meaning we may not even have the right to use it commercially. The capability it provides is small and commodity; we can build an equivalent in-house in under a week and own it outright, with redaction rules we wrote and can defend. Recommendation: close out this evaluation and fund a scoped logging-standard workstream — capture schema, redaction rules, sink, retention, sampling. The decision this unblocks is what we log and where it goes; the library choice is downstream of that and should not gate it.
To engineering. Useful as a design reference for field selection and middleware shape — method, URI, status, latency, correlation ID, redacted headers and bodies. Not a dependency. Concrete alternative: a Laravel middleware for inbound plus a listener on Illuminate\Http\Client events (or a Guzzle middleware) for outbound, both writing to a dedicated Monolog channel with a correlation-ID processor and a redaction tap. Ensure the logging layer cannot fail the outbound call, cap body capture, and buffer or queue emission so we don’t add synchronous latency to the request path. Estimated 2–4 days including tests and redaction review. If a requirement later pushes us toward third-party, revisit with OpenTelemetry PHP rather than a single-purpose logger — that also covers tracing and sampling, which this cannot.
Ask. Approval to close out this evaluation and timebox the in-house implementation. Escalate the license question to counsel only if a stakeholder insists on reuse — and note that even a favorable ruling leaves the architectural and maintenance findings unchanged.
How can I help you explore Laravel packages today?