Download the PHP package juliangut/easy-coding-standard-config without Composer
On this page you can find all versions of the php package juliangut/easy-coding-standard-config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download juliangut/easy-coding-standard-config
More information about juliangut/easy-coding-standard-config
Files in juliangut/easy-coding-standard-config
Package easy-coding-standard-config
Short Description easy-coding-standard configuration
License BSD-3-Clause
Homepage https://github.com/juliangut/easy-coding-standard-config
Informations about the package easy-coding-standard-config
easy-coding-standard-config
Opinionated as can be configuration defaults for Easy-Coding-Standard
Installation
Composer
Usage
Create ecs.php
file at your project's root directory
Use one of the provided configurations depending on the PHP version you want to support:
Jgut\ECS\ConfigSet83
, PHP >= 8.3Jgut\ECS\ConfigSet82
, PHP >= 8.2Jgut\ECS\ConfigSet81
, PHP >= 8.1Jgut\ECS\ConfigSet80
, PHP >= 8.0
Configurations
Header
Provide a header string, it will be prepended to every file analysed by php-cs-fixer.
The string {{year}}
will be replaced by the current year, and the string {{package}}
will be replaced by your package name
If {{year}}
is preceded by current year it will be combined into a single date
PHPUnit
If you work with PHPUnit
Doctrine
If you work with Doctrine
Type Inference
If you're in the middle of "type hinting everything", try enabling type inference rules and let php-cs-fixer migrate types from annotations into properties, parameters and return types
Be aware these rules are experimental and will need human supervision after fixing, so you are advised NOT to permanently enable type inference
Additional rules
If you need to add a few additional rules, this rules can be new or override rules already set, the easiest way is using setAdditionalRules
method
It is preferred to identify fixers by their class name, anyway using fixer names will work as well
Custom config
If you need more control over applied rules or prefer a cleaner setup, you can easily create your custom fixer config instead of setting additional rules
Contributing
Found a bug or have a feature request? Please open a new issue. Have a look at existing issues before.
See file CONTRIBUTING.md
License
See file LICENSE included with the source code for a copy of the license terms.
All versions of easy-coding-standard-config with dependencies
dealerdirect/phpcodesniffer-composer-installer Version ^1.0
friendsofphp/php-cs-fixer Version ^3.61.1
juliangut/php-codesniffer-custom-sniffs Version ^1.2
juliangut/php-cs-fixer-custom-fixers Version ^1.1.1
kubawerlos/php-cs-fixer-custom-fixers Version ^3.22
lcobucci/clock Version ^2.2|^3.0
nikic/php-parser Version ^4.19|^5.2
pedrotroller/php-cs-custom-fixer Version ^2.33
slevomat/coding-standard Version ^8.15
squizlabs/php_codesniffer Version ^3.10
symplify/coding-standard Version ^11.1.10|^12.0
symplify/easy-coding-standard Version ^11.2.10|^12.2.1