protonlabs / php-coding-standard
ProtonLabs Coding Standard
Installs: 42 021
Dependents: 1
Suggesters: 0
Security: 0
Stars: 7
Watchers: 5
Forks: 7
Open Issues: 1
Type:phpcodesniffer-standard
Requires
- php: ^8.0
- slevomat/coding-standard: ^8.0
- squizlabs/php_codesniffer: ^3.7
README
Installation & Usage
Install the package with composer
composer req protonlabs/php-coding-standard --dev
To use it in your phpcs xml, add a rule pointing to the ruleset.xml
<?xml version="1.0"?> <ruleset name="ProtonLabs PHP CodeSniffer Standard"> <!-- Proton Coding Standard – https://github.com/ProtonMail/php-coding-standard --> <rule ref="vendor/protonlabs/php-coding-standard/Proton/ruleset.xml"> <!-- sniffs to exclude --> <!-- <exclude name="SlevomatCodingStandard.PHP.UselessParentheses"/> --> </rule> <exclude-pattern>*/vendor/*</exclude-pattern> </ruleset>