PHPackages                             padaliyajay/php-autoprefixer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. padaliyajay/php-autoprefixer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

padaliyajay/php-autoprefixer
============================

CSS Autoprefixer written in pure PHP.

1.5(8mo ago)468.6M↓42.3%127MITCSS

Since Jan 4Pushed 8mo ago4 watchersCompare

[ Source](https://github.com/padaliyajay/php-autoprefixer)[ Packagist](https://packagist.org/packages/padaliyajay/php-autoprefixer)[ RSS](/packages/padaliyajay-php-autoprefixer/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (7)

php-autoprefixer
================

[](#php-autoprefixer)

CSS autoprefixer written in pure PHP

Installation
------------

[](#installation)

Simply add a dependency on padaliyajay/php-autoprefixer to your composer.json file if you use [Composer](https://getcomposer.org/) 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](https://github.com/padaliyajay/php-autoprefixer/wiki/Installation) anyway you want.

Usage
-----

[](#usage)

```
use Padaliyajay\PHPAutoprefixer\Autoprefixer;

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

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

Options
-------

[](#options)

### `prettyOutput`

[](#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`

[](#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
-------

[](#license)

[MIT](http://opensource.org/licenses/MIT) licensed.

###  Health Score

56

—

FairBetter than 97% of packages

Maintenance59

Moderate activity, may be stable

Popularity57

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 71.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~504 days

Recently: every ~616 days

Total

6

Last Release

261d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/27342583?v=4)[Jay Padaliya](/maintainers/padaliyajay)[@padaliyajay](https://github.com/padaliyajay)

---

Top Contributors

[![padaliyajay](https://avatars.githubusercontent.com/u/27342583?v=4)](https://github.com/padaliyajay "padaliyajay (33 commits)")[![Ruud68](https://avatars.githubusercontent.com/u/2733197?v=4)](https://github.com/Ruud68 "Ruud68 (4 commits)")[![tobiasberge](https://avatars.githubusercontent.com/u/8480203?v=4)](https://github.com/tobiasberge "tobiasberge (4 commits)")[![mitelg](https://avatars.githubusercontent.com/u/6985627?v=4)](https://github.com/mitelg "mitelg (2 commits)")[![michael-sumner](https://avatars.githubusercontent.com/u/75835774?v=4)](https://github.com/michael-sumner "michael-sumner (1 commits)")[![demeritcowboy](https://avatars.githubusercontent.com/u/2967821?v=4)](https://github.com/demeritcowboy "demeritcowboy (1 commits)")[![shyim](https://avatars.githubusercontent.com/u/6224096?v=4)](https://github.com/shyim "shyim (1 commits)")

---

Tags

autoprefixercssphpprecssvendor-prefix

### Embed Badge

![Health badge](/badges/padaliyajay-php-autoprefixer/health.svg)

```
[![Health](https://phpackages.com/badges/padaliyajay-php-autoprefixer/health.svg)](https://phpackages.com/packages/padaliyajay-php-autoprefixer)
```

###  Alternatives

[lullabot/amp

A set of useful classes and utilities to convert html to AMP html (See https://www.ampproject.org/)

3823.0M12](/packages/lullabot-amp)[chameleon-system/chameleon-base

The Chameleon System core.

1029.4k6](/packages/chameleon-system-chameleon-base)[northys/css-inliner

PHP Library that converts css file into html inline styles.

4317.0k](/packages/northys-css-inliner)[drupaljedi/css-tree-shaking

Helps you to eliminate the portions of CSS you aren't using. Usually should be used to generate AMP pages, where is the fixed limit for maximum styles size.

1222.5k](/packages/drupaljedi-css-tree-shaking)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
