Download the PHP package hks-systeme/php-cs-fixer-config without Composer
On this page you can find all versions of the php package hks-systeme/php-cs-fixer-config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hks-systeme/php-cs-fixer-config
More information about hks-systeme/php-cs-fixer-config
Files in hks-systeme/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/hks-systeme/php-cs-fixer-config
Informations about the package php-cs-fixer-config
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:
HKS\PhpCsFixer\RuleSet\Php74
HKS\PhpCsFixer\RuleSet\Php80
HKS\PhpCsFixer\RuleSet\Php81
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
:
: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:
Changelog
Please have a look at CHANGELOG.md
.
Contributing
Please have a look at .github/CONTRIBUTING.md
.
Code of Conduct
Please have a look at CODE_OF_CONDUCT.md
.
License
This package is licensed using the MIT License.
Please have a look at LICENSE.md
.
Credits
This project is inspired by ergebnis/php-cs-fixer-config
.