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

Log Bridge Bundle Laravel Package

m6web/log-bridge-bundle

M6Web LogBridgeBundle provides a Symfony logging bridge that integrates PSR-3/Monolog-compatible loggers into the service container, making it easy to configure and route application logs consistently across services with minimal setup.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

The framing problem first. Despite the brief, this is not a Laravel package — it is a Symfony Bundle (m6web/log-bridge-bundle, repo BedrockStreaming/LogBridgeBundle). Symfony Bundles are not installable into Laravel: there is no Bundle registration lifecycle, no DependencyInjection\Extension, no Resources/config/services.yml autoloading, and no config/packages/*.yaml convention in a Laravel app. Any assessment of "integration" must therefore separate adopting the bundle (Symfony-only) from adopting the pattern (portable to Laravel).

  • Architecture fit — poor as a dependency, reasonable as a reference. The package's value is the concept: a Monolog-backed capture of inbound Request and outbound Response with correlation context. That concept maps cleanly onto Laravel middleware plus a Monolog processor, but none of the bundle's wiring survives the trip. Laravel's Illuminate\Http\Request/Response extend Symfony's HttpFoundation types, so the data model is compatible even though the container model is not.
  • Integration feasibility — low as-is. Realistic routes are (a) use it only if we have Symfony services in the estate, (b) fork and strip the bundle plumbing, or (c) reimplement as ~1 middleware + 1 processor. Option (c) is likely cheaper than evaluating (b), which tells you most of what you need to know about the package's leverage.
  • Technical risk — moderate, concentrated in two places. First, governance: 18 stars and 0 dependents means no production battle-testing signal anywhere in the ecosystem; the opportunity score (31.43) and composite score (16.7) are consistent with a low-adoption utility library. Second, and more important, request/response logging is a PII and secrets hazard by default — authorization headers, cookies, form bodies, and API payloads are exactly the fields you must not ship to a log aggregator. Whether the bundle redacts by default is the single highest-stakes unknown.
  • Key questions for the maintainer / spike:
    • Does it log full bodies and headers by default, and what redaction hooks exist?
    • What are the symfony/http-foundation, symfony/http-kernel, and monolog/monolog version constraints, and do they resolve against our pinned Symfony components?
    • Is capture synchronous on the request path, or deferred to kernel.terminate?
    • Is there a size cap / streaming guard for large uploads and file downloads?
    • Why does the composer name (m6web/*) diverge from the repo org (BedrockStreaming)? Rebrand drift is a mild maintenance smell.
    • The recorded last release (2026-07-28) needs verification — either it is a metadata anomaly or a forward-dated tag; confirm against Packagist before planning around it.

Integration Approach

  • Stack fit. If the target is Laravel 10/11/12: no. If the target is Symfony 5.4/6.x: plausible, subject to constraint resolution. If the estate is mixed (Symfony service emitting into a shared observability pipeline), the bundle may be worth a narrow pilot in the Symfony service only.
  • Migration path for a Laravel codebase. Plan for a port, not an install:
    1. Spike (1–2 days): read the handler and processor source; extract the request/response serialization and correlation-ID logic as a spec.
    2. Reimplement: a TerminateMiddleware (or LogRequestResponse middleware) that captures method, path, status, duration, and a correlation ID; a Monolog processor that injects the correlation ID; an explicit allowlist/denylist for headers and body fields.
    3. Do not port the bundle's DI extension or configuration tree — Laravel config files and a service provider cover it with less code.
  • Compatibility checkpoints. Confirm symfony/http-foundation resolves to the same major Laravel pins; confirm Monolog major version aligns with the app's logging.php channel handlers; confirm PHP version floor.
  • Sequencing. (1) Confirm redaction posture and licensing, (2) decide adopt-in-Symfony vs. port-to-Laravel, (3) build the port behind a feature flag, (4) run in shadow mode against a non-production log sink for two weeks, (5) sample-rate and roll out. Do not let step 1 be skipped — it is the only step that can veto the whole effort.

Decision framing for the product owner: this package is a design input, not a procurement. Budget it as reference material for a small first-party implementation, not as a dependency to be pinned and supported.

Operational Impact

  • Maintenance. With 18 stars, 0 dependents, and a single-organisation maintainer, assume we own the code the moment it is in production. If adopted in Symfony, plan to vendor or fork; if ported, the fork question disappears and the maintenance cost moves to our own small middleware — which is the better outcome.
  • Support. No meaningful community. Issue response is best-effort from the upstream org. Escalation path is "read the source," which is viable only because the surface is small.
  • Scaling. Two cost drivers: volume and latency. Full request/response capture can multiply log ingest volume by an order of magnitude versus standard access logs — model this against current ingest pricing before rollout. Synchronous Monolog handlers add per-request latency and become a bottleneck under load; prefer buffered/async handlers and sampling. Large or streamed responses are a memory-footprint risk if bodies are serialized naively.
  • Failure modes to design against.
    • Secret leakage into the log pipeline (auth headers, tokens in query strings, PII in bodies) — the highest-severity failure, and irreversible once shipped to a third-party aggregator.
    • Logging failure cascading into request failure — capture must be wrapped so that an exception in the log path never returns a 5xx.
    • Memory blow-up on file uploads and streamed downloads — needs a hard size cap and stream detection.
    • Pipeline backpressure — if the log sink stalls, buffered handlers can drop records or block; decide which is acceptable.
    • Correlation-ID collisions or absence — logs become unjoinable across services, silently degrading the value proposition.
  • Ramp-up. Low. The domain (HTTP middleware, Monolog handlers, correlation IDs) is standard for any mid-level PHP engineer; the codebase is small enough to fully review in under a day. The real ramp-up cost is policy — agreeing redaction rules and retention with security — not engineering.

Recommendation: do not add as a dependency for a Laravel target. Use it as a scoped reference for a first-party middleware, contingent on a redaction review, and re-evaluate only if the estate contains Symfony services where the bundle installs cleanly.

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.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels