PHPackages                             incenteev/hashed-asset-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. incenteev/hashed-asset-bundle

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

incenteev/hashed-asset-bundle
=============================

Apply an asset version based on a hash of the asset for symfony/asset

v1.6.2(5mo ago)26538.9k↓78.9%41MITPHPPHP &gt;=8.2CI failing

Since Jun 9Pushed 4mo ago3 watchersCompare

[ Source](https://github.com/Incenteev/hashed-asset-bundle)[ Packagist](https://packagist.org/packages/incenteev/hashed-asset-bundle)[ RSS](/packages/incenteev-hashed-asset-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (16)Versions (13)Used By (1)

HashedAssetBundle
=================

[](#hashedassetbundle)

The HashedAssetBundle provides an asset version strategy which uses a hash of the file content as asset version. This allows bumping the asset version separately for each asset (automatically).

[![CI](https://github.com/Incenteev/hashed-asset-bundle/actions/workflows/ci.yml/badge.svg)](https://github.com/Incenteev/hashed-asset-bundle/actions/workflows/ci.yml) [![Total Downloads](https://camo.githubusercontent.com/dc7b145915cb59078788cf934a4d12b13c582762f37ecf826ab167bbdbf15653/68747470733a2f2f706f7365722e707567782e6f72672f696e63656e746565762f6861736865642d61737365742d62756e646c652f646f776e6c6f6164732e737667)](https://packagist.org/packages/incenteev/hashed-asset-bundle) [![Latest Stable Version](https://camo.githubusercontent.com/e0be453a00fe1cbb21a9f22a3781d6685ba843efb4759b9984f3082efdbdc21c/68747470733a2f2f706f7365722e707567782e6f72672f696e63656e746565762f6861736865642d61737365742d62756e646c652f762f737461626c652e737667)](https://packagist.org/packages/incenteev/hashed-asset-bundle)

Installation
------------

[](#installation)

Use [Composer](https://getcomposer.org) to install the bundle:

```
$ composer require incenteev/hashed-asset-bundle
```

Usage
-----

[](#usage)

Register the bundle in the kernel:

```
// app/AppKernel.php

// ...

class AppKernel extends Kernel {
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Incenteev\HashedAssetBundle\IncenteevHashedAssetBundle(),
        );
    }
}
```

Then configure FrameworkBundle to use the new version strategy:

```
framework:
    assets:
        version_strategy: incenteev_hashed_asset.strategy
```

Advanced configuration
----------------------

[](#advanced-configuration)

The default configuration should fit common needs, but the bundle exposes a few configuration settings in case you need them:

```
incenteev_hashed_asset:
    # Absolute path to the folder in which assets can be found
    # Note: in case you apply a base_path in your asset package, it is not
    # yet applied to the string received by the bundle
    web_root: '%kernel.project_dir%/web'
    # Format used to apply the version. This is equivalent to the
    # `framework > assets > version_format` of the static version strategy
    # of FrameworkBundle.
    version_format: '%%s?%%s'
```

License
-------

[](#license)

This bundle is under the [MIT license](LICENSE).

Alternative projects
--------------------

[](#alternative-projects)

If you want to apply cache busting by renaming files in your asset pipeline (for instance with the webpack-encore versioning feature), have a look at the `json_manifest` strategy available in Symfony itself.

Reporting an issue or a feature request
---------------------------------------

[](#reporting-an-issue-or-a-feature-request)

Issues and feature requests are tracked in the [Github issue tracker](https://github.com/Incenteev/hashed-asset-bundle/issues).

###  Health Score

59

—

FairBetter than 98% of packages

Maintenance73

Regular maintenance activity

Popularity45

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor1

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

Every ~286 days

Recently: every ~350 days

Total

12

Last Release

158d ago

PHP version history (4 changes)v1.0.0PHP ^7.0

v1.1.0PHP ^7.2

v1.2.0PHP &gt;=7.4

v1.6.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/75c5d927b0434111db9720dd78af8c83385cf28bb9aeafd031ba8cb0c4ffc558?d=identicon)[Stof](/maintainers/Stof)

---

Top Contributors

[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (74 commits)")[![artursreiljans](https://avatars.githubusercontent.com/u/6273608?v=4)](https://github.com/artursreiljans "artursreiljans (4 commits)")[![TiGR](https://avatars.githubusercontent.com/u/281226?v=4)](https://github.com/TiGR "TiGR (2 commits)")[![KonstantinKuklin](https://avatars.githubusercontent.com/u/573586?v=4)](https://github.com/KonstantinKuklin "KonstantinKuklin (1 commits)")

---

Tags

assetsbundlecache-bustinghacktoberfestphpsymfonysymfony-bundlesymfonybundleassetsSymfony Bundlecache-busting

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/incenteev-hashed-asset-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/incenteev-hashed-asset-bundle/health.svg)](https://phpackages.com/packages/incenteev-hashed-asset-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k251.7M11.6k](/packages/symfony-framework-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M572](/packages/shopware-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)[shopware/storefront

Storefront for Shopware

684.6M235](/packages/shopware-storefront)

PHPackages © 2026

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