vihuvac / htmlcompressor-bundle
Symfony2 bundle which allow to minify cacheable HTML and XML responses using htmlcompressor
Installs: 6 709
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
This package is not auto-updated.
Last update: 2024-11-09 19:33:24 UTC
README
⚠️ DEPRECATED:
Unfortunately I want to inform this bundle is getting deprecated. Sorry for the inconvenience. 😔
Allow to minify cacheable HTML and XML responses using htmlcompressor.
Installation
Get the bundle
Add this line in your composer.json require section:
"vihuvac/htmlcompressor-bundle": "dev-master"
and run this command in your project directory:
$ php composer.phar update vihuvac/htmlcompressor-bundle
Enable the bundle
Edit your application's kernel:
// app/AppKernel.php <?php public function registerBundles() { $bundles = array( // ... new Vihuvac\Bundle\HtmlCompressorBundle\VihuvacHtmlCompressorBundle(), ); }
Now, it's time to configure it!
Configuration
# app/config/config.yml
html_compressor:
enabled: true
java: /usr/bin/java
jar: ~
options: {}