PHPackages                             apeschar/php-cs-fixer - 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. apeschar/php-cs-fixer

ActiveLibrary

apeschar/php-cs-fixer
=====================

3.0(4y ago)020.6k↓42.6%1MITPHP

Since Apr 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/apeschar/php-cs-fixer)[ Packagist](https://packagist.org/packages/apeschar/php-cs-fixer)[ RSS](/packages/apeschar-php-cs-fixer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (1)

Shared config for PHP-CS-Fixer
==============================

[](#shared-config-for-php-cs-fixer)

This is to keep my rules for PHP-CS-Fixer in one place, so that changing them affects all projects.

It also uses `git ls-files '*.php'` to list target files instead of Symfony's finder. This is much faster and automatically avoids files that are not versioned.

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

[](#installation)

Install PHP-CS-Fixer and this package in a subdirectory of your project:

```
mkdir -p tools/php-cs-fixer
composer --working-dir=tools/php-cs-fixer \
    require friendsofphp/php-cs-fixer apeschar/php-cs-fixer

```

Initialize the `.php-cs-fixer.dist.php`:

```
cat > .php-cs-fixer.dist.php
