PHPackages                             mikefunk/bustersphp - 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. mikefunk/bustersphp

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

mikefunk/bustersphp
===================

A simple class to generate js/css tags with cache names from busters.json. This is related to gulp-buster.

1.1.5(12y ago)115.3k[2 issues](https://github.com/mikedfunk/BustersPhp/issues)MITPHP

Since Apr 9Pushed 12y agoCompare

[ Source](https://github.com/mikedfunk/BustersPhp)[ Packagist](https://packagist.org/packages/mikefunk/bustersphp)[ RSS](/packages/mikefunk-bustersphp/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (8)Used By (0)

[![Build Status](https://camo.githubusercontent.com/9533395a4048c431d7cc835b58d3c2311ddba6cc53858d19b260d28436debd29/68747470733a2f2f7472617669732d63692e6f72672f6d696b656466756e6b2f427573746572735068702e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/mikedfunk/BustersPhp)

BustersPhp
==========

[](#bustersphp)

A simple class to generate js/css tags with cache names from busters.json. If you use [gulp-buster](https://www.npmjs.org/package/gulp-buster) to create a busters.json, it will look something like this:

```
{
    "path/to/app.min.css": "f77f5bee5ef6a19bf63fe66aa0971576",
    "path/to/app.min.js": "03cbc5dc0b5b117264ae74515cd3fb76"
}
```

Then you can put `` in your view and it will display like this:

```

```

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

[](#installation)

[Get composer](http://getcomposer.org), then put this in your `composer.json` in the "require" block:

```
"mikefunk/bustersphp": "1.1.*"
```

then run `composer update`.

Usage
-----

[](#usage)

- use [gulp-buster](https://www.npmjs.org/package/gulp-buster) to generate combined css/js cache files with the hash as the file name
- add BustersPhp to your PHP application via composer: `composer require MikeFunk/BustersPhp:dev-develop`
- instantiate in your php with your config passed in:

```
