szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset

Hybrid PHPCS ruleset for OOP WordPress development

Installs: 31 120

Dependents: 11

Suggesters: 0

Security: 0

Stars: 10

Watchers: 2

Forks: 2

Open Issues: 6

Type:phpcodesniffer-standard

v1.0.0 2024-06-28 17:10 UTC

README

Hybrid PHPCS ruleset for OOP WordPress development

Build Status Packagist Version Packagist PHP Version Support

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 example Net_Ping
  • You can put your Composer package name there: yoast/phpunit-polyfills
  • Or you can use your WordPress.org plugin slug: wordpress-seo