bytic / phpqaconfig
Meta package for configuration files for PHP QA tools
Installs: 1 148
Dependents: 6
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: ^7.4 || ^8
- dealerdirect/phpcodesniffer-composer-installer: ^0.7.0||^1.0.0
- phpcsstandards/phpcsextra: ^1.0
- phpcsstandards/phpcsutils: ^1.0
- slevomat/coding-standard: ^7.0||^8.0
- squizlabs/php_codesniffer: ^3.5
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.8 || ^3.0
README
PHP Code Sniffer
Configuration file: bytic.phpcs.xml
Usage
-
Link bytic/qaconfig repo as composer dependency
$ composer require bytic/qaconfig:^1.0
-
Extend provided configuration to adapt it to your project.
<?xml version="1.0" encoding="UTF-8"?> <ruleset name="DEMO-PHP project code style checker config"> <rule ref="./vendor/bytic/qaconfig/bytic.phpcs.xml"> <exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/> </rule> <rule ref="PSR1.Classes.ClassDeclaration"> <exclude-pattern>*/_stubs.php</exclude-pattern> </rule> <rule ref="Generic.CodeAnalysis.UnconditionalIfStatement.Found"> <exclude-pattern>*/_stubs.php</exclude-pattern> </rule> </ruleset>