Download the PHP package ergebnis/php-cs-fixer-config without Composer
On this page you can find all versions of the php package ergebnis/php-cs-fixer-config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ergebnis/php-cs-fixer-config
More information about ergebnis/php-cs-fixer-config
Files in ergebnis/php-cs-fixer-config
Package php-cs-fixer-config
Short Description Provides a configuration factory and rule set factories for friendsofphp/php-cs-fixer.
License MIT
Homepage https://github.com/ergebnis/php-cs-fixer-config
Informations about the package php-cs-fixer-config
php-cs-fixer-config
This project provides a composer package with a configuration factory and rule set factories for friendsofphp/php-cs-fixer.
Installation
Run
Usage
Configuration
Pick one of the rule sets:
Ergebnis\PhpCsFixer\RuleSet\Php53Ergebnis\PhpCsFixer\RuleSet\Php54Ergebnis\PhpCsFixer\RuleSet\Php55Ergebnis\PhpCsFixer\RuleSet\Php56Ergebnis\PhpCsFixer\RuleSet\Php70Ergebnis\PhpCsFixer\RuleSet\Php71Ergebnis\PhpCsFixer\RuleSet\Php72Ergebnis\PhpCsFixer\RuleSet\Php73Ergebnis\PhpCsFixer\RuleSet\Php74Ergebnis\PhpCsFixer\RuleSet\Php80Ergebnis\PhpCsFixer\RuleSet\Php81Ergebnis\PhpCsFixer\RuleSet\Php82Ergebnis\PhpCsFixer\RuleSet\Php83Ergebnis\PhpCsFixer\RuleSet\Php84Ergebnis\PhpCsFixer\RuleSet\Php85
Create a configuration file .php-cs-fixer.php in the root of your project:
Git
All configuration examples use the caching feature, and if you want to use it as well, you should add the cache directory to .gitignore:
Configuring a rule set with header
:bulb: Optionally specify a header:
This will enable and configure the HeaderCommentFixer, so that file headers will be added to PHP files, for example:
Configuring a rule set that overrides rules
:bulb: Optionally override rules from a rule set by passing a set of rules to be merged in:
Configuring a rule set that registers and configures rules for custom fixers
:bulb: Optionally register and configure rules for custom fixers:
Makefile
If you like Makefiles, create a Makefile with a coding-standards target:
Run
to automatically fix coding standard violations.
Composer script
If you like composer scripts, add a coding-standards script to composer.json:
Run
to automatically fix coding standard violations.
GitHub Actions
If you like GitHub Actions, add a coding-standards job to your workflow:
Changelog
The maintainers of this project record notable changes to this project in a changelog.
Contributing
The maintainers of this project suggest following the contribution guide.
Code of Conduct
The maintainers of this project ask contributors to follow the code of conduct.
General Support Policy
The maintainers of this project provide limited support.
PHP Version Support Policy
This project currently supports the following PHP versions:
- PHP 7.4 (has reached its end of life on November 28, 2022)
- PHP 8.0 (has reached its end of life on November 26, 2023)
- PHP 8.1 (has reached its end of life on December 31, 2025)
- PHP 8.2
- PHP 8.3
- PHP 8.4
- PHP 8.5
The maintainers of this project add support for a PHP version following its initial release and may drop support for a PHP version when it has reached its end of life.
Security Policy
This project has a security policy.
License
This project uses the MIT license.
Credits
This project is inspired by and also replaces localheinz/php-cs-fixer-config.
This project requires and enables custom fixers from the following packages:
Social
Follow @localheinz and @ergebnis on X.
All versions of php-cs-fixer-config with dependencies
ext-filter Version *
erickskrauch/php-cs-fixer-custom-fixers Version ~1.3.1
friendsofphp/php-cs-fixer Version ~3.95.27
kubawerlos/php-cs-fixer-custom-fixers Version ~3.37.4