mhujer/javascript-error-handler-bundle
A Symfony bundle that integrates a JavaScript error handler, capturing client-side JavaScript errors and reporting them to your backend so they can be logged and monitored alongside server-side issues.
window.addEventListener('error') + unhandledrejection → dev-only endpoint), or (c) adopt an OSS package. This package is only evidence for option (c), and at 1 star, 0 dependents, and a composite score of 0.065 it is weak evidence even for that.What it does not support: release health metrics, triage by user impact, SLA/uptime reporting, trend lines, deduplication, or any customer-facing decision. It produces alerts, not data. Keep it out of roadmap conversations that assume aggregation.
Lead with the disqualifier: this is a Symfony bundle, not a Laravel package. It registers through Symfony's kernel and bundles.php, with DI container wiring and Twig resources. A Laravel application cannot composer require it — the only reusable asset is the browser-side JavaScript, which you would vendor and own. If the team is on Laravel, treat this as reference material, not a dependency, and evaluate Sentry's Laravel SDK, Flare/Ignition, or Telescope for the actual need.
Consider adopting it as a dependency only when all of these hold:
composer.json constraints still support (verify — it appears to be Symfony 2.x/3.x era, likely PHP 5.x/Twig 1.x).Look elsewhere when:
For executives (one paragraph): Our frontend can fail silently — a JavaScript error breaks a form or a checkout step and we hear about it from a customer, not from our own tooling. This repository is a small MIT-licensed Symfony utility that surfaces those browser errors as visible alerts so developers don't miss them. It is free, but it is effectively unmaintained: one star, no downstream users, no compatibility guarantees, and — importantly — it is a Symfony bundle, so it does not install in our Laravel application at all. My recommendation is not to adopt it as a dependency. Instead, use it to justify a small, bounded investment in client-side error visibility: either a commercial monitor on a free tier (fastest — roughly a day of integration, with alerting and release tracking included) or an in-house handler (a few days, no vendor, but no aggregation). The cost of doing nothing is measured in undetected broken user journeys.
For engineering (one paragraph): mhujer/javascript-error-handler-bundle hooks browser error events and reports them back to a Symfony endpoint so client-side exceptions land in the same logs as PHP errors. Two things to flag immediately: it is a Symfony bundle, so it is not installable here, and it is a 1-star, zero-dependent, low-health repository — adopting it means forking it in spirit on day one. It is dev-environment tooling only; there is no aggregation, deduplication, source-map handling, or alert routing, and its alert()-based UX blocks the main thread and can amplify an error loop into an outage. It also misses large error classes (unhandledrejection, sanitized cross-origin "Script error.", worker errors), so coverage will be misleadingly sparse. Recommendation: (1) if we need this now, integrate Sentry's SDK — same idea, maintained; (2) if vendor approval is blocked, spend the half-day to write the equivalent ourselves (a ~30-line module posting to a dev-only, rate-limited endpoint with a session-scoped dedupe guard) so we own the code and the upgrade path; (3) use this repo only as prior art when writing that spec, and record the decision in an ADR.
How can I help you explore Laravel packages today?