mremi/templating-extra-bundle
mremi/templating-extra-bundle is a Symfony bundle that adds extra templating helpers and Twig extensions, making views cleaner and more reusable. It provides convenient utilities for common template tasks so you can reduce custom boilerplate in your application’s presentation layer.
What the package actually is. Despite being evaluated in a Laravel/PHP context, mremi/templating-extra-bundle is a Symfony bundle, not a Laravel package. It hooks into Symfony's templating component and the WebProfiler to record which Twig or PHP templates were rendered during a request, adding a panel/collector to the dev toolbar. It is a developer-tooling package, not a runtime library.
Architecture fit. For a Laravel codebase: none. Laravel has no bundle system, no Symfony templating component, no WebProfiler collector pipeline, and renders via Blade/Blade-like engines. Integrating this would require either (a) porting the collector to Laravel's View events and Debugbar, or (b) abandoning Laravel for Symfony. Neither is justified by the package's scope. For a legacy Symfony 2.x/3.x application it fits the intended architecture, but only in dev/test environments.
Integration feasibility. Low. The dependency chain is the blocker: it targets the symfony/templating component, which was deprecated in Symfony 4.3 and removed in Symfony 6, and the Twig bundle profiler has since absorbed most of this functionality natively. Any modern Symfony (5.4+/6.x/7.x) or any Laravel version is effectively out of scope without a rewrite of the collector.
Technical risk. High, driven by project health rather than code complexity:
Key questions to resolve before any decision.
View::composer/events or Symfony's Twig\Profiler cover 90% of the need?Stack fit. Laravel: do not integrate. There is no supported path, and the effort to force it exceeds the effort to build the equivalent. Symfony (legacy): viable only as a require-dev dependency in the dev/test environments, with the bundle registered conditionally in config/bundles.php (or AppKernel for 2.x/3.x) behind an environment check.
Recommended replacement mapping.
barryvdh/laravel-debugbar (views + timings), laravel/telescope (request/ view events in non-prod), or itsgoingd/clockwork.View::composer('*', ...) listener or a ViewRendered event subscriber writing to a debug channel.Migration path (if the team is genuinely on legacy Symfony).
require-dev, enable only in dev, confirm the profiler panel appears.require; add a CI guard (composer.json lint or a check that the bundle is not registered in prod) so it cannot leak into production.Compatibility and sequencing. Pin against the exact Symfony minor version and PHP constraint the bundle declares; expect friction on PHP 8+ and Symfony 5+. Sequence the work after confirming there's no native equivalent, and treat it as a time-boxed spike (≤2 days) rather than a committed integration. If the spike exposes a hard incompatibility — the likely outcome — the deliverable is a documented decision to use native tooling, not a workaround.
Maintenance. This is the dominant cost. An unmaintained dev dependency becomes a recurring tax: every framework/PHP upgrade forces you to either patch a fork or drop the tool. With a single maintainer and no dependents, expect to own the code the moment you adopt it. Budget for periodic review of the fork against upstream.
Support. No vendor, no SLA, no active issue triage. Internal support burden falls on whichever engineer adopted it. Document the decision and the owner explicitly, or it becomes orphaned tooling that nobody dares remove.
Scaling. Negligible in the runtime sense — the package is dev-only and never executes in production, so it has no bearing on throughput, latency, or horizontal scaling. The scaling concern is organizational: the number of engineers who understand Symfony's profiler internals shrinks over time, and a bespoke dev tool increases onboarding friction for Laravel-native hires.
Failure modes.
dev, the collector adds per-request memory and overhead and may expose internal template paths in error pages.Ramp-up. Low for anyone who has used the Symfony WebProfiler (minutes to interpret the panel). Higher for Laravel-only engineers, who gain no transferable knowledge — they'd be learning a Symfony-specific tool for a capability their own stack already provides. Net onboarding value is negative relative to native alternatives.
TPM recommendation. Do not adopt. The package is architecturally mismatched to Laravel, targets a removed Symfony component, and offers capability already covered by first-party or well-maintained tooling. If the underlying need is real, scope a 1–2 day internal spike against Debugbar/Telescope (Laravel) or the native Twig profiler (Symfony); use this repository as a reference implementation for a view-render collector if useful, not as a dependency.
How can I help you explore Laravel packages today?