nowo-tech/twig-inspector-bundle
Twig Inspector Bundle adds a debugging toolbar to Symfony apps that reveals which Twig template rendered each part of a page. Hover over HTML elements to see template names, blocks, and file paths, making it easier to locate and fix view code during development.
Consider it when all of the following hold:
{% embed %}/{% block %}-heavy enough that the standard Symfony Web Profiler Twig panel (which lists rendered templates but does not map them to specific DOM regions) is insufficient for day-to-day debugging.dev/test config.Look elsewhere when:
To executives: "A small, free, MIT-licensed developer tool for our Symfony template layer. It's a dev-only install — zero production runtime cost, zero customer-facing risk — and it cuts the time engineers spend hunting for which template produced a chunk of a page. Given near-zero stars and a single maintainer, we treat it as an internal convenience we pin and can replace in a day, not as a strategic dependency."
To engineering leadership: "Cheap DX win for template-heavy codebases: it overlays template/block origin onto rendered HTML in dev. Integration is a composer require plus a dev-only bundle registration; removal is a one-line revert. Trade-off is adoption risk — low stars, no dependents — so we scope it to local/CI-adjacent dev environments and pin the version. Decision to make: adopt as a pinned dev dependency, or skip it if the Twig profiler panel already covers the team's workflow."
To the engineering team: "It answers 'which Twig template and block rendered this element?' without reading the inheritance chain by hand. Try it for one sprint behind a dev-only flag and keep it only if it demonstrably saves debugging time; otherwise remove it. Do not reference it in production configs, tests, or deployment tooling."
How can I help you explore Laravel packages today?