Skip to content
[Unsupported] A stand alone CSS parser, minifier and cacher.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
tests
Compression.php
license.md
readme.md

readme.md

Compression v3.0.1

A basic class that loads CSS files, compresses them, and saves the resulting output into a cached file.

Requirements

  • PHP 5.3+ - v3.x
  • PHP 5.2+ - v2.x

Features

  • 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

Documentation

Thorough documentation can be found here: http://milesj.me/code/php/compression

You can’t perform that action at this time.