Download the PHP package localheinz/php-cs-fixer-config without Composer
On this page you can find all versions of the php package localheinz/php-cs-fixer-config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download localheinz/php-cs-fixer-config
More information about localheinz/php-cs-fixer-config
Files in localheinz/php-cs-fixer-config
Package php-cs-fixer-config
Short Description Provides a configuration factory and multiple rule sets for friendsofphp/php-cs-fixer.
License MIT
Homepage https://github.com/localheinz/php-cs-fixer-config
Informations about the package php-cs-fixer-config
:exclamation: Abandoned!
Use ergebnis/php-cs-fixer-config
instead.
php-cs-fixer-config
Provides a configuration factory and multiple rule sets for friendsofphp/php-cs-fixer
.
Installation
Run
Usage
Configuration
Pick one of the rule sets:
Localheinz\PhpCsFixer\RuleSet\Php71
Localheinz\PhpCsFixer\RuleSet\Php73
Create a configuration file .php_cs
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
:
:bulb: Personally, I prefer to use a .build
directory for storing build artifacts.
Configuration 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:
Configuration with override rules
:bulb: Optionally override rules from a rule set by passing in an array of rules to be merged in:
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:
Travis
If you like Travis CI, add a coding-standards
stage to your jobs:
Changelog
Please have a look at CHANGELOG.md
.
Contributing
Please have a look at CONTRIBUTING.md
.
Code of Conduct
Please have a look at CODE_OF_CONDUCT.md
.
License
This package is licensed using the MIT License.
Credits
This project is inspired by refinery29/php-cs-fixer-config
, which I created and maintained from August 7, 2015 until May 29, 2017, while working for Refinery29, Inc.