CSS autoprefixer written in pure PHP
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.
use Padaliyajay\PHPAutoprefixer\Autoprefixer;
$unprefixed_css = file_get_contents('main.css'); // CSS code
$autoprefixer = new Autoprefixer($unprefixed_css);
$prefixed_css = $autoprefixer->compile();
MIT licensed.