Download the PHP package zoerb/filerevbundle without Composer
On this page you can find all versions of the php package zoerb/filerevbundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zoerb/filerevbundle
More information about zoerb/filerevbundle
Files in zoerb/filerevbundle
Package filerevbundle
Short Description Handle asset rewrites based on json configuration
License MIT
Informations about the package filerevbundle
ZoerbFilerevBundle
This bundle adds support for handling asset cachbusting rewrites based on a JSON configuration.
It enables you to drop assetic and use frontend tooling like grunt
or gulp
to build and rev your assets.
The only thing you need is the rev summary provided by gulp-rev
or grunt-filerev
and this bundle will handle everything else.
The summary file should look something like this:
Installation
Step 1: Download
Step 2: Enable the bundle
Finally, enable the bundle in the kernel:
Configuration
Add the following configuration to your app/config/config.yml
:
zoerb_filerev: ~
Options
summary_file
Type: string
Default value: '%kernel.root_dir%/config/rev-manifest.json'
Points to the rev summary file
enbled
Type: bool
Default value: true
debug
Type: bool
Default value: %kernel.debug%
root_dir
Type: string
Default Value: '%kernel.root_dir%/../web'
length
Type: int
Default: 8
The number of characters of the file hash.
separator
Type: string
Default: .
The character which separates filename and hash.
Changelog
See Changelog.md
Can I contribute?
Of course. We appreciate all of our contributors and welcome contributions to improve the project further. If you're uncertain whether an addition should be made, feel free to open up an issue and we can discuss it.
License
MIT © Ben Zörb