Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 823 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 823 Bytes

php-autoprefixer

CSS autoprefixer written in pure PHP

Installation

Simply add a dependency on padaliyajay/php-autoprefixer to your composer.json file if you use Composer to manage the dependencies of your project:

composer require padaliyajay/php-autoprefixer

Although it's recommended to use Composer, you can actually include these files anyway you want.

Usage

use Padaliyajay\PHPAutoprefixer\Autoprefixer;

$unprefixed_css = file_get_contents('main.css'); // CSS code

$autoprefixer = new Autoprefixer($unprefixed_css);
$prefixed_css = $autoprefixer->compile();

License

MIT licensed.

Donate & Support

PayPal.me