lidaa/twig-bundle
Lidaa Twig Bundle brings the Twig templating engine to Laravel. Render .twig views through Laravel's view system, configure template paths, caching, and extensions, and mix Twig and Blade where needed. A lightweight way to use Twig's syntax in Laravel apps.
tag, css/js, unset, number, session) can use this as a ready-made "borrow" baseline — it plausibly short-circuits a sprint of utility work, at the cost of an unmaintained dependency.LidaaTwigBundle), wired through a Symfony kernel, DI compiler tags, and twig.extension services. It does not install into Laravel's container. The real product decision is Symfony vs. the Laravel community twigbridge — which changes cost/benefit materially.Consider it when:
url, image, css, js, tag, session, number, form, html, unset) without writing them yourself.Look elsewhere when:
rcrowe/twigbridge, or stay on Blade with equivalent helpers.php execution, session access) with audited maintenance. Symfony's first-party twig-bridge already covers the safe equivalents (asset, form, html, session, trans).twig-bridge or a small in-house extension set you own.To executives (one paragraph):
This is a small community Twig extension bundle that would save us from building common template helpers (image markup, CSS/JS tags, form rendering, number formatting) from scratch. It is low-cost to trial but a narrow, low-adoption dependency — 24 stars, zero downstream dependents, no visible maintenance. Recommendation: allow it in an isolated spike to validate the template approach; do not place it on a customer-facing critical path without a fork-and-own plan. Budget the "buy" as a reference implementation, not a platform commitment.
To engineering leads:
It's a Symfony bundle, not a Laravel package — confirm framework fit first. On Symfony/Twig it overlaps heavily with official
twig-bridge; the delta is convenience extensions (image,tag,css,js,unset,number). Two hard risks: (1) thephpextension turns every template into an arbitrary-code-execution surface, so it must be disabled or allowlisted before any use, and (2) the package is effectively unmaintained, with Twig 1.x-era APIs that need mechanical rewrites for Twig 3. Plan to vendor or fork the extension classes into our codebase and own them. Treat it as a reference implementation for our own extension library, not a live dependency.
How can I help you explore Laravel packages today?