PHPackages                             jeroenvdheuve/assetic-cache-busting-worker-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/assetic-cache-busting-worker-bundle

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

jeroenvdheuve/assetic-cache-busting-worker-bundle
=================================================

Assetic cache busting worker bundle. Uses the assetic cache busting worker to add a hash to the filename based on file content.

v1.0.3(10y ago)211.5k3[1 PRs](https://github.com/jeroenvdheuvel/assetic-cache-busting-worker-bundle/pulls)MITPHP

Since Jul 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/jeroenvdheuvel/assetic-cache-busting-worker-bundle)[ Packagist](https://packagist.org/packages/jeroenvdheuve/assetic-cache-busting-worker-bundle)[ RSS](/packages/jeroenvdheuve-assetic-cache-busting-worker-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (5)Used By (0)

README
======

[](#readme)

Master: [![Build Status](https://camo.githubusercontent.com/feb76c9c7c5993a8c77ff437d3ac627ade3da50b1bf7373cda61921c27c3e37a/68747470733a2f2f7472617669732d63692e6f72672f6a65726f656e766468657576656c2f617373657469632d63616368652d62757374696e672d776f726b65722d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jeroenvdheuvel/assetic-cache-busting-worker-bundle)

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

[](#description)

This bundle makes it easy automatically change file names of files controlled by assetic like Javascript Stylesheet files. The CacheBustingWorker adds a hash to the filename. This hash is generated by using the content of the file. Because this CacheBustingWorker does not use file modification time to generate the hash, it also works well with systems that don not care about file modification time (like git).

Enable this bundle by registering the bundle

```
# AppKernel.php

public function registerBundles()
{
    $bundles = array(
        ...
        new jvdh\AsseticCacheBustingBundle\JvdhAsseticCacheBustingBundle()
    );
}
```

and by enabling it a config file.

```
# app/config/config.yml

jvdh_assetic_cache_busting:
    enabled: true
```

Hash separator separates the file from the hash. A dash / *-* is the default separator. When minifying a javascript.js file. The CacheBustingWorker will change the name to javascript-HASH.js

```
# app/config/config.yml

jvdh_assetic_cache_busting:
    enabled: true
    separator: -
```

Hash length is *8* characters by default. When increasing the hash length, always check if the hash algorithm creates hashes that long. For instance md5 creates hashes of only 32 characters.

```
# app/config/config.yml

jvdh_assetic_cache_busting:
    enabled: true
    hash_length: 32
```

Hash algorithm is *sha1* by default. Any hash algorithm supported by the php function `hash` is fine to use. A different algorithm might improve the speed of generating changing the file name.

```
# app/config/config.yml

jvdh_assetic_cache_busting:
    enabled: true
    hash_algorithm: md5
```

When the file names only need to contain the hash in production. It is possible to register the bundle only in production mode. It is also possible to enable the cache busting in for instance the `app/config/config_prod.yml` file that is only loaded in production mode.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Every ~77 days

Total

4

Last Release

3722d ago

### Community

Maintainers

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

---

Tags

bundlehashcachecontentasseticbustingmodification time

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jeroenvdheuve-assetic-cache-busting-worker-bundle/health.svg)

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

###  Alternatives

[gos/pubsub-router-bundle

Symfony PubSub Router Bundle

442.2M1](/packages/gos-pubsub-router-bundle)[sineflow/clamav

ClamAV PHP Client for Symfony

10168.5k](/packages/sineflow-clamav)

PHPackages © 2026

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