alex198710 / csstidy
Wrapper around the CssTidy library
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.2
This package is not auto-updated.
Last update: 2024-05-21 00:25:12 UTC
README
- Wrapper around CSSTidy
- CSSTidy 1.3 csstidy.sourceforge.net
With PHP > 5.3
Composer.json
Add this line:
"alex198710/csstidy": "dev-master"
Then use it like this:
<?php
include('class.csstidy.php');
$css_code = '
a {
color:black;
background-color:blue;
}';
$css = new csstidy();
$css->set_cfg('remove_last_;',TRUE);
$css->parse($css_code);
echo $css->print->formatted();
?>