This is a CodeIgniter Spark that provides cssmin.php, a PHP implementation of YUI Compressor by Julien Lecomte.
First, install the spark by running
$ php tools/spark install cssmin
Then, in your code:
$this->load->spark('cssmin/1.0.0');
$minified = minifycss($source);
First, install it by copying libraries/cssmin.php
into application/libraries
and helpers/cssmin_helper.php
into application/helpers
.
$this->load->helper('cssmin');
$minified = minifycss($source);
Permission is hereby granted to use the PHP version under the same conditions as the YUICompressor.
- Copyright © 2013 Ny fågel hej@nyfagel.se (CodeIgniter Spark)
- Copyright © 2013 Tubal Martin (YUI CSS compressor PHP port)
- Copyright © 209 Yahoo! Inc. (YUI Compressor)