2017 © Pedro PelĂĄez
 

symfony-bundle filerevbundle

Handle asset rewrites based on json configuration

image

zoerb/filerevbundle

Handle asset rewrites based on json configuration

  • Friday, October 28, 2016
  • by bezoerb
  • Repository
  • 1 Watchers
  • 2 Stars
  • 11,934 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 9 Versions
  • 3 % Grown

The README.md

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., (*1)

The summary file should look something like this:, (*2)

{
  "/styles/main.css": "/styles/main.59983df7.css",
  "/scripts/main.js": "/scripts/main.c711a749.js"
}

Installation

Step 1: Download

composer require zoerb/filerevbundle

Step 2: Enable the bundle

Finally, enable the bundle in the kernel:, (*3)

<?php
// app/appKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Zoerb\Bundle\FilerevBundle\ZoerbFilerevBundle(),
    );
}

Configuration

Add the following configuration to your app/config/config.yml:, (*4)

zoerb_filerev: ~

Options

summary_file

Type: string Default value: '%kernel.root_dir%/config/rev-manifest.json', (*5)

Points to the rev summary file, (*6)

enbled

Type: bool Default value: true, (*7)

debug

Type: bool Default value: %kernel.debug%, (*8)

root_dir

Type: string Default Value: '%kernel.root_dir%/../web', (*9)

length

Type: int Default: 8, (*10)

The number of characters of the file hash., (*11)

separator

Type: string Default: ., (*12)

The character which separates filename and hash., (*13)

Changelog

See Changelog.md, (*14)

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., (*15)

License

MIT © Ben Zörb, (*16)

The Versions

28/10 2016

dev-master

9999999-dev

Handle asset rewrites based on json configuration

  Sources   Download

MIT

The Requires

 

by Ben Zörb

library asset cachebusting filerev

28/10 2016

v1.1.1

1.1.1.0

Handle asset rewrites based on json configuration

  Sources   Download

MIT

The Requires

 

by Ben Zörb

library asset cachebusting filerev

28/10 2016

v1.1.0

1.1.0.0

Handle asset rewrites based on json configuration

  Sources   Download

MIT

The Requires

 

by Ben Zörb

library asset cachebusting filerev

29/09 2016

v1.0.2

1.0.2.0

Handle asset rewrites based on json configuration

  Sources   Download

MIT

The Requires

 

by Ben Zörb

library asset cachebusting filerev

09/01 2016

v1.0.1

1.0.1.0

Handle asset rewrites based on json configuration

  Sources   Download

MIT

The Requires

 

by Ben Zörb

library asset cachebusting filerev

07/12 2015

v1.0.0

1.0.0.0

Handle asset rewrites based on json configuration

  Sources   Download

MIT

The Requires

 

by Ben Zörb

library asset cachebusting filerev

06/12 2015

v0.1.2

0.1.2.0

Handle asset rewrites based on json configuration

  Sources   Download

MIT

The Requires

 

by Ben Zörb

library asset cachebusting filerev

06/12 2015

v0.1.1

0.1.1.0

Handle asset rewrites based on json configuration

  Sources   Download

MIT

The Requires

 

by Ben Zörb

library asset cachebusting filerev

05/12 2015

v0.1.0

0.1.0.0

Handle asset rewrites based on json configuration

  Sources   Download

MIT

The Requires

 

by Ben Zörb

library asset cachebusting filerev