kwrz/twig-exception
Integrates Twig with Laravel's exception handler so errors and debug pages render through Twig templates instead of Blade, keeping error output consistent with your Twig-based views and making custom error pages easy to style.
errors/{code} views and the exception handler's render/renderable callbacks; Symfony's error controller + Twig). The PM decision is whether to adopt, vendor, or reimplement — and for a package at 0 stars / 0 dependents, the honest default is reimplement or vendor with a maintenance owner.Consider it only if:
Look elsewhere — or just build it — when:
resources/views/errors/{code}.blade.php plus renderable exceptions covers ~90% of this in under an hour, with zero dependency risk.error.html.twig / error{code}.html.twig conventions and the error controller already do this.Adoption verdict for the PM: Do not adopt as a dependency for a production Laravel product. If the error-page requirement is real, scope an in-house implementation (est. 0.5–1 dev-day including design handoff and tests) and spend the saved risk budget on observability for error paths.
For executives (one paragraph): A small open-source package has surfaced that renders customizable Twig error pages per route or HTTP status code. My recommendation is not to adopt it. It has essentially no adoption or maintenance signal (0 stars, 0 dependents), and the capability it provides is a few hours of in-house work on top of the error handling our framework already ships. Adopting it would trade a one-day build for an indefinite dependency risk owned by whoever debugs it next. I'd rather we spend that day building it ourselves and put the difference into error-path observability, which is where the real customer and revenue exposure sits.
For engineering (the ask): Confirm whether per-route error templating is an actual requirement or a nice-to-have; if real, implement natively (framework error views + exception renderable hooks) with a shared layout and per-status templates. If a Twig-specific path is mandatory because of the existing stack, we vendor the package source, pin it, and assign an owner — no floating version constraints. Either way, add error-path logging/metrics so we can see what users actually hit, which is the decision-grade data this whole discussion is missing.
What I need to decide: (1) Is per-route error granularity in scope for this quarter? (2) Do we have a Twig-based stack constraint that rules out the native path? (3) Who owns the error-page surface long-term? Absent clear answers, default to build in-house, no new dependency.
How can I help you explore Laravel packages today?