A complete minifier in pure PHP for your assetic. Using Douglas Crockford JSMin and Tubal Martin CssMin

dev-master 2013-03-22 18:18 UTC

This package is not auto-updated.

Last update: 2024-04-13 10:38:51 UTC


Build Status

An assetic minifier in pure PHP for CSS and JS files. This bundle use JSMin and CssMin


Add this line into your composer.json :

"davidjegat/assetic-minifier-bundle": "*"

Enable the bundle into your AppKernel.php :

new DavidJegat\AsseticMinifierBundle\DavidJegatAsseticMinifierBundle()

# Use the minifier

Once the bundle is install yo can use the filter minify_js and minify_css for enable the minify.

{% stylesheets 
	<link rel="stylesheet" type="text/css" href="{{asset_url}}">

{% endstylesheets %}