fidry / php-cs-fixer-config
The PHP-CS-Fixer default config for my projects
Installs: 11 399
Dependents: 1
Suggesters: 0
Security: 0
Stars: 6
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/fidry/php-cs-fixer-config
Requires
- php: ^7.2 || ^8.0
Requires (Dev)
- ergebnis/composer-normalize: ^2.13.0
- fidry/makefile: ^0.2.1 || ^1.0.0
- friendsofphp/php-cs-fixer: ^3.76.0
- phpunit/phpunit: ^9.4.3 || ^10.0 || ^11.0 || ^12.0
- symfony/filesystem: ^5.4 || ^6.4 || ^7.1
Conflicts
- friendsofphp/php-cs-fixer: <3.92.5 || >=4.0
- dev-main
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- dev-feat/php-version
- dev-fix/disable-phpunit-provider-order
- dev-ci/php85
- dev-chore/bump-cs-fixer
- dev-fix/min-php-cs-fixer
- dev-build/derepcate-env
- dev-build/dist-to-var
- dev-ci/permissions
- dev-ci/pin-deps
- dev-test/fix
- dev-ci/dependabot
- dev-build/tmp-files
- dev-bugfix
This package is auto-updated.
Last update: 2026-01-10 22:12:03 UTC
README
My personal PHP-CS-Fixer base configuration.
Installation
composer require --dev fidry/php-cs-fixer-config
Usage
<?php // php-cs-fixer.dist.php declare(strict_types=1); use Fidry\PhpCsFixerConfig\FidryConfig; use PhpCsFixer\Finder; $finder = // Configure Finder here as usual; // Here use the specific config. $config = new FidryConfig( // The header comment used <<<'EOF' This file is part of the Fidry PHP-CS-Fixer Config package. (c) Théo FIDRY <theo.fidry@gmail.com> For the full copyright and license information, please view the LICENSE file that was distributed with this source code. EOF, // The min PHP version supported (best to align with your composer.json) 72000, ); // You can further configure the $config here, to add or override some rules. $config->addRules([ // ... ]); return $config->setFinder($finder);