CodeIgniter minify

Simple library to minify JavaScript & CSS in CodeIgniter. JavaScript minification is based on Closure Compiler. CSS minifcation is based on minify library. Addtionaly all CSS scripts and JavaScript scripts are marget into single files.


First of all You need to deploy minify to libraries directory:

Then You can load library using standard CodeIgniter loader:


Then, in VIEW in page header You can use this commands:

$this->minify->css_file = 's.min.css';
$this->minify->assets_dir = 'assets';
$this->minify->css(array('reset.css', 'style.css', 'tinybox.css'));
echo $this->minify->deploy_css(false);


Download from GitHub:
[button link=”” style=”large red square” target=”_blank”]CodeIgniter-minify[/button]

This is a beta version, and comments will be appreciated.

Crazy aboutSmart IDE for PHP development with HTML, CSS & JavaScript support