2017 © Pedro PelĂĄez
 

symfony-bundle htmlcompressor-bundle

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

image

vihuvac/htmlcompressor-bundle

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

  • Tuesday, March 1, 2016
  • by vihuvac
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,277 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 15 % Grown

The README.md

HtmlCompressorBundle

:warning: DEPRECATED:, (*1)

Unfortunately I want to inform this bundle is getting deprecated. Sorry for the inconvenience. :pensive:, (*2)


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

Installation

Get the bundle

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

``` json "vihuvac/htmlcompressor-bundle": "dev-master", (*5)


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

Enable the bundle

Edit your application's kernel:, (*6)

``` php // app/AppKernel.php, (*7)

<?php, (*8)

public function registerBundles() { $bundles = array( // ... new Vihuvac\Bundle\HtmlCompressorBundle\VihuvacHtmlCompressorBundle(), ); }, (*9)


Now, it's time to configure it! ## Configuration

app/config/config.yml

html_compressor: enabled: true java: /usr/bin/java jar: ~ options: {} ```, (*10)

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" : ~, "--compress-css" : ~, "--js-compressor" : closure, "--closure-opt-level" : simple }

The Versions

01/03 2016

dev-master

9999999-dev https://github.com/vihuvac/htmlcompressor-bundle

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

  Sources   Download

MIT

xml html minify compressor vihuvac

01/03 2016

v1.0.0

1.0.0.0 https://github.com/vihuvac/htmlcompressor-bundle

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

  Sources   Download

MIT

xml html minify compressor vihuvac