PHPackages                             netzmacht/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. netzmacht/assetic-autoprefixer

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

netzmacht/assetic-autoprefixer
==============================

autoprefixer-php filter for kriswallsmith/assetic

851.5k2[2 issues](https://github.com/netzmacht/assetic-autoprefixer/issues)1PHP

Since Feb 5Pushed 11y ago3 watchersCompare

[ Source](https://github.com/netzmacht/assetic-autoprefixer)[ Packagist](https://packagist.org/packages/netzmacht/assetic-autoprefixer)[ RSS](/packages/netzmacht-assetic-autoprefixer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (1)

[![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/netzmacht/assetic-autoprefixer/config/autoprefixer.xml"
          # if you like, you can use apply_to here :-)
          # e.g, apply_to: "\.css"
          # otherwise you use the filter in your template with filter="autoprefixer"
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.3% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8189209?v=4)[netzmacht](/maintainers/netzmacht)[@netzmacht](https://github.com/netzmacht)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[datacreativa/laravel-presentable

Create presenters for Eloquent Models

7323.9k](/packages/datacreativa-laravel-presentable)[dcarbone/soap-plus

PHP SoapClient wrapper class

2450.1k](/packages/dcarbone-soap-plus)[symbiote/silverstripe-datachange-tracker

Record and track changes to any dataobjects. View chages/diffs in model admin.

1622.7k3](/packages/symbiote-silverstripe-datachange-tracker)[rcastera/session

Session Class

222.2k](/packages/rcastera-session)

PHPackages © 2026

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