<commit_before>[![Version](http://img.shields.io/packagist/v/bit3/assetic-autoprefixer.svg?style=flat-square)](https://packagist.org/packages/bit3/assetic-autoprefixer)
[![Stable Build Status](http://img.shields.io/travis/bit3/assetic-autoprefixer/master.svg?style=flat-square)](https://travis-ci.org/bit3/assetic-autoprefixer)
[![Upstream Build Status](http://img.shields.io/travis/bit3/assetic-autoprefixer/develop.svg?style=flat-square)](https://travis-ci.org/bit3/assetic-autoprefixer)
[![License](http://img.shields.io/packagist/l/bit3/assetic-autoprefixer.svg?style=flat-square)](https://github.com/bit3/assetic-autoprefixer/blob/master/LICENSE)
[![Downloads](http://img.shields.io/packagist/dt/bit3/assetic-autoprefixer.svg?style=flat-square)](https://packagist.org/packages/bit3/assetic-autoprefixer)

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

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

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

ai/autoprefixer is required to be installed.

### Install autoprefixer globally

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

### Install autoprefixer locally

```bash
npm install autoprefixer
```

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

```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');
```<commit_msg>Do some little improvements in the readme.<commit_after>[![Version](http://img.shields.io/packagist/v/bit3/assetic-autoprefixer.svg?style=flat-square)](https://packagist.org/packages/bit3/assetic-autoprefixer)
[![Stable Build Status](http://img.shields.io/travis/bit3/assetic-autoprefixer/master.svg?style=flat-square)](https://travis-ci.org/bit3/assetic-autoprefixer)
[![Upstream Build Status](http://img.shields.io/travis/bit3/assetic-autoprefixer/develop.svg?style=flat-square)](https://travis-ci.org/bit3/assetic-autoprefixer)
[![License](http://img.shields.io/packagist/l/bit3/assetic-autoprefixer.svg?style=flat-square)](https://github.com/bit3/assetic-autoprefixer/blob/master/LICENSE)
[![Downloads](http://img.shields.io/packagist/dt/bit3/assetic-autoprefixer.svg?style=flat-square)](https://packagist.org/packages/bit3/assetic-autoprefixer)

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
------------

[`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

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

### Install autoprefixer globally on your system

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

### Install autoprefixer locally on your system

```bash
npm install autoprefixer
```

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

```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');
```
{'fraction_non_alphanumeric': 0.16851945426983325, 'fraction_numerical': 0.00606366851945427, 'mean_word_length': 5.3344, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6357098', 'n_tokens_mistral': 1408, 'n_tokens_neox': 1414, 'n_words': 215}