PHPackages                             bit3/assetic-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. bit3/assetic-autoprefixer

Abandoned → [netzmacht/assetic-autoprefixer](/?search=netzmacht%2Fassetic-autoprefixer)ArchivedLibrary

bit3/assetic-autoprefixer
=========================

autoprefixer-php filter for kriswallsmith/assetic

1.0.2(11y ago)02.0kMITPHPPHP &gt;=5.3

Since Sep 6Pushed 11y ago1 watchersCompare

[ Source](https://github.com/bit3archive/assetic-autoprefixer)[ Packagist](https://packagist.org/packages/bit3/assetic-autoprefixer)[ Docs](http://bit3.de)[ RSS](/packages/bit3-assetic-autoprefixer/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (5)Used By (0)

[![Version](https://camo.githubusercontent.com/76b0aa32d0ff3b7d663d905399d68d9e6ee37274a18293fdc32c4dbb8441144b/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626974332f617373657469632d6175746f70726566697865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bit3/assetic-autoprefixer)[![Stable Build Status](https://camo.githubusercontent.com/adf6b857e2048222a1bf42cb3c893d54d58cdf169df9d8d3bbb71d5062c7eca9/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f626974332f617373657469632d6175746f70726566697865722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/bit3/assetic-autoprefixer)[![Upstream Build Status](https://camo.githubusercontent.com/a935b8dda97a6f49a269ccc88c0c4613ba6a72e39fe628c029508a6e2be3f933/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f626974332f617373657469632d6175746f70726566697865722f646576656c6f702e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/bit3/assetic-autoprefixer)[![License](https://camo.githubusercontent.com/b5ebe1039c1cb2effdb366d024bcbc193d3e8e8311c70adb68f2a3dbf3cc9f23/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626974332f617373657469632d6175746f70726566697865722e7376673f7374796c653d666c61742d737175617265)](https://github.com/bit3/assetic-autoprefixer/blob/master/LICENSE)[![Downloads](https://camo.githubusercontent.com/a06e4f4b62103a353807a5167f80ba55422a97e33a2cf94368a9edb391bbb415/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626974332f617373657469632d6175746f70726566697865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bit3/assetic-autoprefixer)

Autoprefixer filter
===================

[](#autoprefixer-filter)

This is a filter implementation to use [Autoprefixer](https://github.com/postcss/autoprefixer)within the [PHP assetic framework](https://github.com/kriswallsmith/assetic).

Requirements
------------

[](#requirements)

[`kriswallsmith/assetic`](https://github.com/kriswallsmith/assetic) is required to be installed in your php project. [`postcss/autoprefixer`](https://github.com/postcss/autoprefixer) is required to be installed on your system.

### Install kriswallsmith/assetic with composer

[](#install-kriswallsmithassetic-with-composer)

```
php composer.phar require kriswallsmith/assetic ~1.0
```

### Install autoprefixer globally on your system

[](#install-autoprefixer-globally-on-your-system)

```
sudo npm install -g autoprefixer
```

### Install autoprefixer locally on your system

[](#install-autoprefixer-locally-on-your-system)

```
npm install autoprefixer
```

Usage in PHP
------------

[](#usage-in-php)

```
use Bit3\Assetic\Filter\Autoprefixer\AutoprefixerFilter;

// if you have installed autoprefixer globally
$autoprefixerBinary = '/usr/bin/autoprefixer';

// if you have installed autoprefixer locally
$autoprefixerBinary = '/../node_modules/.bin/autoprefixer';

$autoprefixerFilter = new AutoprefixerFilter($autoprefixerBinary);

// if node.js binary is not installed as /usr/bin/node
// (e.g. on debian/ubuntu the binary is named /usr/bin/nodejs)
$autoprefixerFilter->setNodeBin('/usr/bin/nodejs');
```

Usage in Symfony2
-----------------

[](#usage-in-symfony2)

This project comes with a assetic filter configuration file, located in the `config` directory.

Define the autoprefixer binary path in the `parameters.yml`:

```
parameters:
  # if you have installed autoprefixer globally
  assetic.autoprefixer.bin: /usr/bin/autoprefixer

  # if you have installed autoprefixer locally
  assetic.autoprefixer.bin: %kernel.root_dir%/../node_modules/.bin/autoprefixer

  # if node.js binary is not installed as /usr/bin/node
  # (e.g. on debian/ubuntu the binary is named /usr/bin/nodejs)
  assetic.node.bin: /usr/bin/nodejs
```

Then enable the filter in the `assetic` configuration chapter:

```
# Assetic Configuration
assetic:
    filters:
        autoprefixer:
          resource: "%kernel.root_dir%/../vendor/bit3/assetic-autoprefixer/config/autoprefixer.xml"
          # if you like, you can use apply_to here :-)
          # otherwise you use the filter in your template with filter="autoprefixer"
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

4263d ago

PHP version history (3 changes)1.0.1PHP &gt;=5.4

1.0.2PHP &gt;=5.3

1.0.0PHP &gt;=5.3.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e61f74ea186c1e79e072b2974ccdeef39414730476d5a8adac501eb9449b2a3?d=identicon)[tril](/maintainers/tril)

---

Top Contributors

[![tristanlins](https://avatars.githubusercontent.com/u/343404?v=4)](https://github.com/tristanlins "tristanlins (28 commits)")

---

Tags

cssassetsvendor prefix

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/bit3-assetic-autoprefixer/health.svg)

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

###  Alternatives

[stolz/assets

An ultra-simple-to-use assets management library

296519.2k8](/packages/stolz-assets)[skeeks/yii2-assets-auto-compress

Automatically compile and merge files js + css + html in yii2 project

162437.6k6](/packages/skeeks-yii2-assets-auto-compress)[widmogrod/zf2-assetic-module

Zend Framework 2 module that provides complete integration of Assetic library

144348.5k8](/packages/widmogrod-zf2-assetic-module)[janmarek/webloader

Tool for loading or deploying CSS and JS files into web pages

115514.4k14](/packages/janmarek-webloader)[sensiolabs/minify-bundle

Assets Minifier (CSS, JS) for Symfony &amp; Minify integration in Asset Mapper

5694.9k1](/packages/sensiolabs-minify-bundle)[raoul2000/yii2-bootswatch-asset

Use Bootswatch theme in your Yii application with minimum effort

2145.0k4](/packages/raoul2000-yii2-bootswatch-asset)

PHPackages © 2026

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