2017 © Pedro Peláez
 

symfony-bundle htmlcompressor-bundle

Symfony2 bundle which allow to minify cacheable HTML and XML responses using htmlcompressor

image

matthecat/htmlcompressor-bundle

Symfony2 bundle which allow to minify cacheable HTML and XML responses using htmlcompressor

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

HtmlCompressorBundle

Allow to minify cacheable HTML and XML responses using htmlcompressor., (*1)

Installation

Get the bundle

Add this line in your composer.json require section:, (*2)

``` json "matthecat/htmlcompressor-bundle": "dev-master", (*3)


and run this command in your project directory: ``` bash $ php composer.phar update matthecat/htmlcompressor-bundle

Enable the bundle

Edit your application's kernel: ``` php <?php // app/AppKernel.php, (*4)

public function registerBundles() { $bundles = array( // ... new MatTheCat\HtmlCompressorBundle\MatTheCatHtmlCompressorBundle(), ); } ``` Now, it's time to configure it!, (*5)

Configuration

# app/config/config.yml
html_compressor:
    enabled: true
    java:    /usr/bin/java
    jar:     ~
    options: {}
Description Default value Exemple
enabled determine if responses must be minified if they can true -
java path to Java executable /usr/bin/java -
jar path to htmlcompressor executable - %kernel.root_dir%/Resources/java/htmlcompressor-1.5.3.jar
options any option described in the htmlcompressor documentation - { '--compress-js': ~, '--js-compressor': closure }

The Versions

07/06 2013

dev-master

9999999-dev https://github.com/MatTheCat/HtmlCompressorBundle

Symfony2 bundle which allow to minify cacheable HTML and XML responses using htmlcompressor

  Sources   Download

MIT

The Requires

 

xml html minify compressor matthecat