Inform people how to get homebrew-php
NetBeans Plugin

Add NetBeans plugin link in readme
minor #300 NetBeans Plugin (snapshotpl)

This PR was merged into the 0.4.x-dev branch.

Discussion
----------

NetBeans Plugin

Add NetBeans plugin link in readme

Commits
-------

8c6150b NetBeans Plugin
fixes #301  not defined
bug #307 fixes #301 $remoteFilename not defined (kbsali)

This PR was merged into the 0.4.x-dev branch.

Discussion
----------

fixes #301 $remoteFilename not defined

This makes the self-update command to fail (not only on MAC as #301 mentions)

Commits
-------

7e56736 fixes #301  not defined
fixed CS
really fixes selfupdate command (#301)
bug #312 really fixes selfupdate command (#301) (kbsali)

This PR was merged into the 0.4.x-dev branch.

Discussion
----------

really fixes selfupdate command (#301)

sorry, #307 actually did not fix the issue.
I tried to create a test for the command, but
1) it slows down considerably the test suite
2) as it is implemented right now, it basically replaced the phpunit command! :)

Commits
-------

63abb30 really fixes selfupdate command (#301)
Fix: multiple spaces between 'else' and 'if' not fixed
Adding STDIN support
feature #310 Adding STDIN support (davividal)

This PR was squashed before being merged into the 0.4.x-dev branch (closes #310).

Discussion
----------

Adding STDIN support

Add support to `cat foo.php | php-cs-fixer`. When using `STDIN`, the `dry-run` option will be set to `true`.

Commits
-------

e475a72 Adding STDIN support
fixed previous merge
bug #314 Fix: multiple spaces between 'else' and 'if' not fixed (fisharebest)

This PR was merged into the 0.4.x-dev branch.

Discussion
----------

Fix: multiple spaces between 'else' and 'if' not fixed

Multiple spaces between "else" and "if" aren't fixed - just single spaces.

Commits
-------

5148bbc Fix: multiple spaces between 'else' and 'if' not fixed
Allow to specify path to .php_cs file using --config-file option
feature #262 Allow to specify path to .php_cs file using --config-file option (localheinz)

This PR was squashed before being merged into the 0.4.x-dev branch (closes #262).

Discussion
----------

Allow to specify path to .php_cs file using --config-file option

This PR adds the possibility to specify the path to  the `.php_cs` file using a newly added `--config-file` option.

This is very useful if you have a Git `pre-commit` hook similar to the one suggested by [ZF2](https://github.com/zendframework/zf2/blob/master/README-GIT.md#pre-commit-hook-optional), but want to keep the configuration separate from the hook:

```php
#!/usr/bin/env php
<?php

$changes = [];

exec(
    'git diff --cached --name-status --diff-filter=ACM',
    $changes
);

$exit = 0;

array_walk($changes, function ($change) use (&$exit) {

    if ('D' === substr($change, 0, 1)) {
        return;
    }

    $name = trim(substr(
        $change,
        1
    ));

    $extension = pathinfo(
        $name,
        PATHINFO_EXTENSION
    );

    if (!preg_match('/^ph(p|tml)$/', $extension)) {
        return;
    }

    $output = [];
    $return = 0;

    exec(
        sprintf(
            'php -l %s',
            escapeshellarg($name)
        ),
        $output,
        $return
    );

    if (0 != $return) {

        echo sprintf(
            'Failed parsing: %s: ' . PHP_EOL,
            $name
        );

        echo implode(PHP_EOL, $output) . PHP_EOL;

        $exit = 1;
        return;
    }

    $output = [];
    $return = 0;

    exec(
        sprintf(
            'vendor/bin/php-cs-fixer fix --verbose --config-file=.php_cs %s',
            escapeshellarg($name)
        ),
        $output,
        $return
    );

    if (0 != $return) {

        echo sprintf(
            'Fixed coding style issues in : %s' . PHP_EOL,
            $name
        );

        echo implode(PHP_EOL, $output) . PHP_EOL;

        $exit = 1;
        return;
    }
});

exit($exit);
```

Fixes #251.

Commits
-------

e4ceb86 Allow to specify path to .php_cs file using --config-file option
Config feature
feature #291 Config feature (nicktacular)

This PR was squashed before being merged into the 0.4.x-dev branch (closes #291).

Discussion
----------

Config feature

Regarding #288, these fixes have been added:

 * Config::addCustomFixer returns $this to be fluent
 * Fix command does a sanity check on the config file and bails if there's something wrong with it (i.e. doesn't return an instance of Config)

Commits
-------

65048f8 Config feature
refactored some code
fixed typo
Sync README

manually excluded .. code-block: bash for PHP code