Login   Register  
PHP Classes
elePHPant
Icontem

MagicMin: Merge and minify and JavaScript and CSS files

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-10-10 (2 months ago) RSS 2.0 feedNot enough user ratingsTotal: 536 This week: 2All time: 5,099 This week: 790Up
Version License PHP version Categories  
magic-min 2.11GNU General Public Lice...5.0PHP 5, Compression
Description Author  

This class can merge and minify and JavaScript and CSS files.

It can compress JavaScript and CSS files by stripping unnecessary comments, spaces, tabs and line breaks. Previously minified images are skipped.

The Javascript processing can use JSMin or the Google Closure API.

The class can also merge multiple JavaScript and CSS files to minimize the number of server requests.

External images used by CSS files may be converted to be inserted in the CSS styles using data URLs.

The class caches processed files to avoid processing overhead until any of the source files is changed.

Picture of Bennett Stone
Name: Bennett Stone <contact>
Classes: 3 packages by
Country: United States United States
Age: 30
All time rank: 1360183 in United States United States
Week rank: 12 Up2 in United States United States Up

  Files folder image Files  
File Role Description
Plain text file class.magic-min.php Class Class source
Accessible without login Plain text file example.php Example Example script
Accessible without login Plain text file jShrink.php Aux. Auxiliary script
Accessible without login Plain text file minifier-function.inc.php Aux. Auxiliary script
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%Total:536All time:5,099
 This week:2This week:790Up