PHP Classes

MagicMin: Merge and minify and JavaScript and CSS files

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 67%Total: 850 All time: 4,094 This week: 96Up
Version License PHP version Categories
magic-min 2.11GNU General Publi...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: 38
All time rank: 863115 in United States United States
Week rank: 180 Up20 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:850
This week:0
All time:4,094
This week:96Up
 User Ratings  
 
 All time
Utility:87%StarStarStarStarStar
Consistency:81%StarStarStarStarStar
Documentation:75%StarStarStarStar
Examples:81%StarStarStarStarStar
Tests:-
Videos:-
Overall:67%StarStarStarStar
Rank:617