Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 8fee645309
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (11 sloc) 0.314 kb

How to use

// INCLUDE COMPRESSOR CLASS
include('yuicompressor.php');

// INVOKE CLASS
$yui = new YUICompressor(JAR_PATH, TEMP_FILES_DIR, $options);

// ADD FILES
$yui->addFile($path_to_file);

// ADD STRING
$yui->addString($string);

// COMPRESS
$code = $yui->compress();
Jump to Line
Something went wrong with that request. Please try again.