jeroenvdheuve/twig-cache-key-bundle
A Symfony bundle that adds Twig cache-key support, helping applications generate stable, context-aware keys for template and fragment caching so cache reuse and invalidation are more predictable.
Short answer: it mostly supports a "do not adopt" decision — and it surfaces a real but narrow infrastructure question worth answering.
*Bundle naming, service-container registration), and Twig is not Laravel's default engine — Laravel ships Blade. Even with a Twig bridge installed, this bundle will not register. The "Laravel/PHP package" framing in the request is factually wrong for this repo, and that alone should stop it at intake.Adoption criteria — all would have to be true, and even then it fails the last one:
Given the archive date, there is no realistic Twig 2/3 or Symfony 4+ compatibility story, no CVE response path, and no upstream to escalate to.
Look elsewhere when:
php artisan view:cache at build time and keep view.compiled on a path that is identical in build and runtime. Solved.twig.cache to a relative or build-stable directory and warm the cache during the image build. Also solved, natively.Where the package is genuinely informative: it is a clean, ~2016-era worked example of the problem statement. Read the source for the idea; do not put it in composer.json.
Recommendation: no action, no dependency. This is a 2016 Symfony bundle with zero stars and zero dependents, archived and unmaintained for roughly a decade. It does not target Laravel. Adopting it would add supply-chain and maintenance risk to buy a capability that costs a few days to implement correctly in-house — and which modern Symfony and Laravel both address natively through cache-path configuration and build-time cache warmup.
If template compilation latency is a measured problem (bring numbers: p95 first-request time, template count, cold-start frequency), the pitch is a small platform task, not a dependency: pin the compiled-view path to a build-stable directory and warm the cache during image build. Budget: days, not weeks; no ongoing ownership cost.
If it is not a measured problem, the pitch is to close the ticket. The only durable output of this evaluation is a line in the decision log: "Relative template cache keys — solved natively; no third-party dependency required."
How can I help you explore Laravel packages today?