kira0269/symfony-log-viewer-bundle
Symfony Log Viewer Bundle adds a web interface for browsing, searching, and filtering application log files directly from your Symfony project. Inspect recent errors, stack traces, and log levels without shell access, making debugging faster for developers and teams.
Recommendation up front: do not take a dependency on this package. It is a Symfony 5 bundle, not a Laravel package, and the two ecosystems do not share an extension model. The correct TPM framing is "salvageable reference implementation for a build-vs-buy decision," not "candidate dependency."
Architecture fit
Bundle subclass + DI extension + Configuration tree + Twig templates + likely a Monolog-aware reader). Laravel has no concept of a bundle; it has service providers and Blade. There is no bridge, no adapter, and no published Laravel integration.storage/logs/laravel.log using the same LineFormatter lineage as Symfony. A log-line parser written for Symfony is roughly 70% reusable as source material, not as a composer require.Integration feasibility
App::environment('local')). Realistic effort: 2–4 engineer-days. You inherit the maintenance burden but get an artifact that actually fits.opcodesio/log-viewer is the current de facto standard; rap2hpoutre/laravel-log-viewer is the older minimal option). This is the default recommendation unless there is a specific parsing behavior in this bundle you cannot replicate.Technical risk
Key questions to answer before spending any engineering time
tail -f, opcodesio/log-viewer in local env, or Ray/Telescope) or production observability (solved by centralized logging — Sentry, Datadog, Grafana Loki, Papertrail)? A web-based file viewer is the wrong answer to the production case.--env metadata) that Laravel's default line format omits or orders differently?opportunity: 4.15 versus overall 0.43 split is the whole story: the category is underserved and worth investment; this artifact is not the vehicle.Stack fit: poor as a dependency, moderate as a donor.
composer.json will constrain Symfony 5 components and Twig. Installing it pulls a parallel framework's worth of transitive packages into a Laravel app — unacceptable bloat for a read-only log view.Storage facade. There is no capability gap this bundle closes that a maintained alternative leaves open.Migration path
composer require. Vendor the parser only if Option A is chosen; read the source, port the regex/state-machine that groups multi-line stack traces, discard everything Symfony-coupled (Bundle class, DI extension, Configuration tree, Twig templates).{{ }} escaping mandatory and a local-only middleware gate.opcodesio/log-viewer, gate it behind APP_ENV=local and an authorization gate, and close the ticket in under a day.Compatibility
symfony/* constraint ceiling — a 2021 release will predate PHP 8.2/8.3 idioms and may emit deprecations or fatal on typed-property changes.Sequencing
storage/logs/laravel.log and validate that the parser handles our multi-line exception format, our queue worker logs, and our JSON-formatted channels. This is the only genuinely reusable insight from the bundle.local-only middleware, response size caps, log-content escaping test.Maintenance
Support
Scaling
Failure modes (ranked by severity)
Ramp-up
Bottom line for the roadmap: the opportunity: 4.15 score is a signal about the problem space — developers want fast log access — not about this repository. Fund the requirement (dev-time viewer behind an env gate, or centralized logging for production); do not fund this dependency.
How can I help you explore Laravel packages today?