Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.
/ compression Public archive

[Unsupported] A stand alone CSS parser, minifier and cacher.

License

Notifications You must be signed in to change notification settings

milesj/compression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

[Unsupported] A stand alone CSS parser, minifier and cacher.

Resources

License

Stars

Watchers

Forks

Packages

No packages published