PHPackages                             aozisik/grunt-cache-buster - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. aozisik/grunt-cache-buster

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

aozisik/grunt-cache-buster
==========================

A Laravel 4 package that works with Grunt for cache busting.

2455[1 issues](https://github.com/aozisik/grunt-cache-buster/issues)PHP

Since Apr 29Pushed 11y ago1 watchersCompare

[ Source](https://github.com/aozisik/grunt-cache-buster)[ Packagist](https://packagist.org/packages/aozisik/grunt-cache-buster)[ RSS](/packages/aozisik-grunt-cache-buster/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Grunt Cache Buster
==========================

[](#laravel-grunt-cache-buster)

This is a simple cache buster for Laravel 4 framework and Grunt task manager. The package depends on grunt-cachebuster npm module ([felthy/grunt-cachebuster](http://github.com/felthy/grunt-cachebuster)). After you install the npm module and this package, all you have to is add a service provider and configure your Gruntfile.js. **No modification in .htaccess or NGINX configuration modifications are necessary.**

### Configuring Grunt

[](#configuring-grunt)

First add the following module to your package.json and run npm :

```
"grunt-cachebuster": "^0.1.5"

```

Add this to your grunt.initConfig

```
cachebuster: {
    build: {
      options: {
          basedir: 'public/',
          format: 'php',
          banner:
              '/**\n' +
              ' * GENERATED FILE, DO NOT EDIT. This file is simply a collection of generated hashes for static assets in \n' +
              ' * the project. It is generated by grunt, see Gruntfile.js for details.\n' +
              ' */'
      },
      src: ['public/**/*'],
      dest: 'app/config/cachebuster.php'
    }
}

```

And then load the npm task and register it where necessary

```
grunt.loadNpmTasks('grunt-cachebuster');
//..
//..
grunt.registerTask('buster', ['cachebuster']);

```

Make sure the cache buster task runs after all the other tasks. It will generate a file in your app/config directory by default. The package depends on this config file to function properly. After you set things up properly, run grunt and make sure it generates "cachebuster.php" file properly.

### Configuring Laravel

[](#configuring-laravel)

Install this package by adding the following dependency to your L4 project:

```
"aozisik/grunt-cache-buster": "dev-master"

```

After the installation, you need to add the following service provider in your app/config/app.php:

```
'Aozisik\GruntCacheBuster\GruntCacheBusterServiceProvider'

```

Then wherever you want a cache-busted asset you can use the following instead of the default `asset()` helper

```
CacheBusted::asset('js/resultsCtrl.js')

```

The code above, used instead of the default asset helper, will yield the following URL:

```
http://demo.app/js/resultsCtrl.js?v=23d85993f132d67754489e47f66cf6ac

```

Enjoy!
------

[](#enjoy)

If you have any questions to ask or bugs to report, feel free to contact me...

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/735011?v=4)[Ahmet Özışık](/maintainers/aozisik)[@aozisik](https://github.com/aozisik)

---

Top Contributors

[![aozisik](https://avatars.githubusercontent.com/u/735011?v=4)](https://github.com/aozisik "aozisik (5 commits)")

### Embed Badge

![Health badge](/badges/aozisik-grunt-cache-buster/health.svg)

```
[![Health](https://phpackages.com/badges/aozisik-grunt-cache-buster/health.svg)](https://phpackages.com/packages/aozisik-grunt-cache-buster)
```

###  Alternatives

[franzl/studio

Develop your Composer libraries with style

1.1k634.5k15](/packages/franzl-studio)[ezsystems/ez-support-tools

Providing information about the system eZ Platform/Enterprise/Commerce is running on, and eZ install itself

44979.6k18](/packages/ezsystems-ez-support-tools)[sidroberts/phalcon-cron

Cron component for Phalcon.

79149.1k](/packages/sidroberts-phalcon-cron)[data-values/number

Numerical value objects, parsers and formatters

18303.0k14](/packages/data-values-number)[attestto/solana-php-sdk

Solana PHP SDK for interacting with the Solana blockchain

5528.1k](/packages/attestto-solana-php-sdk)[sitegeist/taxonomy

Manage vocabularies and taxonomies as separate node-hierarchy.

1589.7k1](/packages/sitegeist-taxonomy)

PHPackages © 2026

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