PHP Classes

CSSMin: Compact CSS style definitions

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 49%Total: 444 All time: 6,225 This week: 455Up
Version License PHP version Categories
cssmin 3.0MIT/X Consortium ...5.0HTML, PHP 5, Compression
Description 

Author

This class can be used to parse and compact CSS style definitions.

It can take a string with CSS style definitions and removes all comments, empty blocks, empty declarations and whitespace that is not necessary.

It can also rewrite declaration values to a shorter notation when possible.

It also supports rewriting CSS Level 3 properties to their browser specific counterparts, as well simulate CSS variables.

Optionally it can preserve URLs in the style definitions.

Picture of Joe Scylla
Name: Joe Scylla <contact>
Classes: 1 package by
Country: Germany Germany
Age: 50
All time rank: 3421193 in Germany Germany
Week rank: 187 Up7 in Germany Germany Up

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file cssmin-v3.0.0-minified.php Appl. Minified Build of Version 3.0.0 (2011-07-13)
Accessible without login Plain text file cssmin-v3.0.0.php Appl. Build of Version 3.0.0 (2011-07-13)

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:444
This week:0
All time:6,225
This week:455Up
User Ratings User Comments (1)
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:49%StarStarStar
Rank:2751