Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
PHP Class to interface with the YUI Compressor
PHP
branch: master

This branch is 2 commits behind gpbmike:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
yuicompressor.php

README.md

How to use

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

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

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

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

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