Colorize is a super awesome utility to get color codes!
Parses CSS file, gets all the color codes, indexes the colors in the order of usage.
Examples are based on Twitter bootstrap
Here is the quick example:
$oColorize = new clsColorize($css_url); $colors = $oColorize->getColors();
echo "Show 5 most used colors"; print_r($oColorize->getMostUsedColors(5));
Features
Clean code – PHP Utility Class Well Documented Ability to extract all the colors in a CSS resource/URL Ability to get usage count Ability to get most used colors
You may also like AJAX Newsletter Signup with Admin and CSV Exporter
Ajax PHP Contact Form with CSV Exporter & Filters Wordpress Social Locker