This is a really quick port I did of the JSMin-php library. Very little was changed, so I don’t even really want to take credit for it. Usage is exactly what you would expect.
Usage:
Drop the library in your libraries folder, and load the library as usual:
$this->CI->load->library('jsmin');
Minify a string like so:
$this->jsmin->minify($string);
I usually use it with file_get_contents(), like so:
$this->jsmin->minify( file_get_contents($file_reference, 'r') );
See the attached zip file for the full library.
