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.
Drop the library in your libraries folder, and load the library as usual:
Minify a string like so:
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.