szepeviktor / phpcs-psr-12-neutron-hybrid-ruleset
Hybrid PHPCS ruleset for OOP WordPress development
Fund package maintenance!
szepeviktor
Installs: 39 291
Dependents: 11
Suggesters: 0
Security: 0
Stars: 10
Watchers: 2
Forks: 2
Open Issues: 5
Type:phpcodesniffer-standard
Requires
- php: ^7.4 || ^8.0
- automattic/phpcs-neutron-ruleset: ^3.4
- sirbrillig/phpcs-variable-analysis: ^2.0.1
- slevomat/coding-standard: ^8.0
- squizlabs/php_codesniffer: ^3.8
- wp-coding-standards/wpcs: 3.1.0 as 2.3.0
Requires (Dev)
- phpcompatibility/php-compatibility: dev-develop as 10.0.0
- phpcsstandards/phpcsdevcs: ^1.1
Suggests
README
Features
- PSR-12 Extended Coding Style as starting point (formatting)
- All WPCS features through Neutron (except formatting)
- File permission bits
- Strict types
- File, class and method comments
- Handpicked Slevomat rules
Usage
composer require --dev szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset ./vendor/bin/phpcs --standard=PSR12NeutronRuleset src/
About the @package
tag
- The origins of the
@package
tag are in PEAR where packages are called for exampleNet_Ping
- You can put your Composer package name there:
yoast/phpunit-polyfills
- Or you can use your WordPress.org plugin slug:
wordpress-seo