A basic class that loads CSS files, compresses them, and saves the resulting output into a cached file.
- PHP 5.2.x, 5.3.x
- Can define variables within your stylesheet instead of typing the same value repeatedly
- Can call PHP functions within the CSS to output dynamic stylesheets
- Stylesheets are compressed and stripped of whitespace
- Logs a ratio of how much space was saved during compression
- Enable or disable caching
- Cached files and folders are created relative to the parent CSS folder
- Outputs the appropriate HTTP headers
Thorough documentation can be found here: http://milesj.me/code/php/compression