umanit / coding-standard
UmanIT PHP Coding Standard
Package info
github.com/umanit/php-coding-standard
Type:phpcodesniffer-standard
pkg:composer/umanit/coding-standard
1.0.1
2025-09-30 13:53 UTC
Requires
- php: ^8.2
- dealerdirect/phpcodesniffer-composer-installer: ^1.1
- slevomat/coding-standard: ^8.24
- squizlabs/php_codesniffer: ^4.0
README
A custom ruleset for PHP_CodeSniffer including:
- Default PSR12 compliance.
- Prohibit usage of certain PHP functions.
- A bunch of rules from
slevomat/coding-standard. - A custom rule that forces usage of
@todoannotation and forbid other ones likeTODO,FIXMEorXXX.
Usage
Edit your phpcs.xml file to include the following:
<rule ref="UmanITCodingStandard" />