PHPackages                             jeroenvdheuve/twig-cache-key-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. jeroenvdheuve/twig-cache-key-bundle

AbandonedArchivedSymfony-bundle[Caching](/categories/caching)

jeroenvdheuve/twig-cache-key-bundle
===================================

Modifies the twig cache key, to make the cache key the same across multiple directories.

1.0.0(10y ago)03.8kMITPHPPHP &gt;=5.5

Since Mar 9Pushed 10y ago1 watchersCompare

[ Source](https://github.com/jeroenvdheuvel/twig-relative-cache-key-bundle)[ Packagist](https://packagist.org/packages/jeroenvdheuve/twig-cache-key-bundle)[ RSS](/packages/jeroenvdheuve-twig-cache-key-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

README
======

[](#readme)

Master: [![Build Status](https://camo.githubusercontent.com/b2e906a0e4c28dba705da3838a9bd37d593c752651e683ae8c34f82e36ac16d6/68747470733a2f2f7472617669732d63692e6f72672f6a65726f656e766468657576656c2f747769672d72656c61746976652d63616368652d6b65792d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jeroenvdheuvel/twig-relative-cache-key-bundle)

Description
-----------

[](#description)

Makes Twig cache keys relative and therefor reusable across different environments/directory structures.

The default \\Symfony\\Bundle\\TwigBundle\\Loader\\FilesystemLoader returns an absolute path as cache key. For instance /var/www/project or /home/user/project with the same project content would generate a different cache key.

By removing the absolute part, the cache becomes reusable and cache only need to be generated once.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3765d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/37301ff25cf2c512e7c1079160028e6e4c27194b6ba6d44aa52213ba2e3feaac?d=identicon)[jeroenvdheuvel](/maintainers/jeroenvdheuvel)

---

Top Contributors

[![jeroenvdheuvel](https://avatars.githubusercontent.com/u/5213151?v=4)](https://github.com/jeroenvdheuvel "jeroenvdheuvel (1 commits)")

---

Tags

cachecache keytwig relative cache key

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jeroenvdheuve-twig-cache-key-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/jeroenvdheuve-twig-cache-key-bundle/health.svg)](https://phpackages.com/packages/jeroenvdheuve-twig-cache-key-bundle)
```

###  Alternatives

[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
