PHPackages                             treeleaf/symfony-twig-extensions - 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. [Templating &amp; Views](/categories/templating)
4. /
5. treeleaf/symfony-twig-extensions

ActiveProject[Templating &amp; Views](/categories/templating)

treeleaf/symfony-twig-extensions
================================

v0.1(10y ago)02.8kMITPHP

Since May 8Pushed 10y ago1 watchersCompare

[ Source](https://github.com/treeleaf/SymfonyTwigExtensions)[ Packagist](https://packagist.org/packages/treeleaf/symfony-twig-extensions)[ RSS](/packages/treeleaf-symfony-twig-extensions/feed)WikiDiscussions master Synced today

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

SymfonyTwigExtensions
=====================

[](#symfonytwigextensions)

This is a collection of Twig extensions that I use in symfony.

Grunt Asset Cache Bust
----------------------

[](#grunt-asset-cache-bust)

Extension when using Grunt plugin Cache Bust. See

### How to install

[](#how-to-install)

```
composer require treeleaf/symfony-twig-extensions

```

### How to use in Symfony

[](#how-to-use-in-symfony)

In app/config/services.yml:

```
services:
  my_app.twig.grunt_cache_bust:
    class: Treeleaf\Twig\Extension\GruntAssetCacheBust
    public: false
    tags:
        - { name: twig.extension }

```

In a twig template:

```

```

### Grunt

[](#grunt)

Example Gruntfile.js:

```
cacheBust: {
    options: {
        assets: ['css/*', 'js/*']
    },
    all: {
        options: {
            expand: true,
            queryString: true,
            jsonOutput: true
        },
        src: ['/js/**/*.js', '/css/**/*.css']
    }
}

```

This will by default generate a json artefact *grunt-cache-bust.json* with a mapping of the source file and the hashed file.

Example grunt-cache-bust.json:

```
{
    "js/vendor.js":"js/vendor.js?82f8fc4bb7e495e6",
    "js/app.js":"js/app.js?4df6c65674ecfa3d",
    "css/main.css":"css/main.css?362da3994e41aa48"
}

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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

3708d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/da8fd8c3a4faf48d38636ec25720c7e850f0325b68b4f0c808fbc9f0d046cef6?d=identicon)[treeleafmedia](/maintainers/treeleafmedia)

---

Top Contributors

[![LCOAdmin](https://avatars.githubusercontent.com/u/8446085?v=4)](https://github.com/LCOAdmin "LCOAdmin (12 commits)")[![treeleaf](https://avatars.githubusercontent.com/u/877288?v=4)](https://github.com/treeleaf "treeleaf (2 commits)")

### Embed Badge

![Health badge](/badges/treeleaf-symfony-twig-extensions/health.svg)

```
[![Health](https://phpackages.com/badges/treeleaf-symfony-twig-extensions/health.svg)](https://phpackages.com/packages/treeleaf-symfony-twig-extensions)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[mati365/ckeditor5-symfony

CKEditor 5 integration for Symfony

262.6k](/packages/mati365-ckeditor5-symfony)

PHPackages © 2026

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