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\Php53
Ergebnis\PhpCsFixer\RuleSet\Php54
Ergebnis\PhpCsFixer\RuleSet\Php55
Ergebnis\PhpCsFixer\RuleSet\Php56
Ergebnis\PhpCsFixer\RuleSet\Php70
Ergebnis\PhpCsFixer\RuleSet\Php71
Ergebnis\PhpCsFixer\RuleSet\Php72
Ergebnis\PhpCsFixer\RuleSet\Php73
Ergebnis\PhpCsFixer\RuleSet\Php74
Ergebnis\PhpCsFixer\RuleSet\Php80
Ergebnis\PhpCsFixer\RuleSet\Php81
Ergebnis\PhpCsFixer\RuleSet\Php82
Ergebnis\PhpCsFixer\RuleSet\Php83
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 Makefile
s, 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.
You can support the maintenance of this project by sponsoring @localheinz or requesting an invoice for services related to this project.
PHP Version Support Policy
This project supports PHP versions with active and security support.
The maintainers of this project add support for a PHP version following its initial release and drop support for a PHP version when it has reached the end of security support.
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 Twitter.
All versions of php-cs-fixer-config with dependencies
ext-filter Version *
erickskrauch/php-cs-fixer-custom-fixers Version ~1.3.0
friendsofphp/php-cs-fixer Version ~3.64.0
kubawerlos/php-cs-fixer-custom-fixers Version ~3.22.0