All Projects → padaliyajay → php-autoprefixer

padaliyajay / php-autoprefixer

Licence: MIT license
CSS autoprefixer written in pure PHP

Programming Languages

CSS
56736 projects
PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to php-autoprefixer

Gulp Boilerplate
A boilerplate for building web projects with Gulp.js.
Stars: ✭ 840 (+2445.45%)
Mutual labels:  autoprefixer
Fast
Develop, build, deploy, redeploy, and teardown frontend projects fast.
Stars: ✭ 126 (+281.82%)
Mutual labels:  autoprefixer
Next Starter Tailwind
Next.js starter styled with Tailwind CSS
Stars: ✭ 225 (+581.82%)
Mutual labels:  autoprefixer
Bathe
The simplest WordPress starter theme including full setup for Sass, PostCSS, Autoprefixer, stylelint, Webpack, Eslint, imagemin, Browsersync, etc.
Stars: ✭ 65 (+96.97%)
Mutual labels:  autoprefixer
Middleman Autoprefixer
Autoprefixer integration with Middleman
Stars: ✭ 114 (+245.45%)
Mutual labels:  autoprefixer
Dev Toolkit
Universal Development Toolkit for Javascript People
Stars: ✭ 134 (+306.06%)
Mutual labels:  autoprefixer
Turretcss
Turret is a styles and browser behaviour normalisation framework for rapid development of responsive and accessible websites.
Stars: ✭ 729 (+2109.09%)
Mutual labels:  autoprefixer
html-sass-jumpstart
Minimal Sass/HTML Template Site - dart sass powered, includes stylelint and prettier, and autoprefix upon build. develop script includes hot-reload via browsersync.
Stars: ✭ 82 (+148.48%)
Mutual labels:  autoprefixer
Frasco
Quick starter for Jekyll including full setup for Sass, PostCSS, Autoprefixer, stylelint, Webpack, ESLint, imagemin, Browsersync, etc.
Stars: ✭ 123 (+272.73%)
Mutual labels:  autoprefixer
Vanilla Back To Top
Simple and smooth Back To Top button
Stars: ✭ 179 (+442.42%)
Mutual labels:  autoprefixer
Shouldiprefix
A quick overview of what CSS features to prefix
Stars: ✭ 79 (+139.39%)
Mutual labels:  autoprefixer
Fabium
+100 for productivity
Stars: ✭ 108 (+227.27%)
Mutual labels:  autoprefixer
Deventy
A minimal 11ty starting point for building static websites with modern tools.
Stars: ✭ 157 (+375.76%)
Mutual labels:  autoprefixer
Webpack Es6 Sass Setup
A basic setup for Webpack with ES6, Babel, Sass and stylelint
Stars: ✭ 63 (+90.91%)
Mutual labels:  autoprefixer
frontie
Frontie is a front-end boilerplate. Gulp | Twig.js | Sass | Autoprefixer | Browsersync | Bootstrap 4 Grid System & Responsive Breakpoints
Stars: ✭ 28 (-15.15%)
Mutual labels:  autoprefixer
Stencil Postcss
Autoprefixer plugin for Stencil
Stars: ✭ 19 (-42.42%)
Mutual labels:  autoprefixer
Gulp Starter Kit
A simple Gulp 4 Starter Kit for modern web development.
Stars: ✭ 134 (+306.06%)
Mutual labels:  autoprefixer
nextsss
Next.js static site starter including full setup for TypeScript, Tailwind CSS, Google Analytics, Next SEO, etc.
Stars: ✭ 80 (+142.42%)
Mutual labels:  autoprefixer
bootstrap-4-boilerplate
Basic Bootstrap 4 Starter Template
Stars: ✭ 50 (+51.52%)
Mutual labels:  autoprefixer
Less Plugin Autoprefix
Adds the ability for less to be post-processed by autoprefixer
Stars: ✭ 171 (+418.18%)
Mutual labels:  autoprefixer

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();

Options

prettyOutput

Example:

$autoprefixer->compile(false); // Output minified CSS

Defines if the prefixed CSS will be a verbose/prettified output. When false the output will be minified. You can pass it as an option to the compile() method.

Default: true

setVendors

Example:

$autoprefixer->setVendors(array(
    // Omit prefixes for IE
    \Padaliyajay\PHPAutoprefixer\Vendor\Webkit::class,
    \Padaliyajay\PHPAutoprefixer\Vendor\Mozilla::class,
    MyNamespace\Custom\Opera::class // Use custom vendor prefixes
));

$autoprefixer->compile();

Define which vendor classes should be used for prefixing. You can omit unwanted vendors like e.g. IE. If used, only the vendor classes in the given array will take effect.

Default:

array(
    \Padaliyajay\PHPAutoprefixer\Vendor\IE::class,
    \Padaliyajay\PHPAutoprefixer\Vendor\Webkit::class,
    \Padaliyajay\PHPAutoprefixer\Vendor\Mozilla::class,
)

License

MIT licensed.

Donate & Support

PayPal.me

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].