Download the PHP package haptiq/coding-standards without Composer
On this page you can find all versions of the php package haptiq/coding-standards. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download haptiq/coding-standards
More information about haptiq/coding-standards
Files in haptiq/coding-standards
Package coding-standards
Short Description Haptiq Coding Standards
License GPL-2.0-or-later
Informations about the package coding-standards
Haptiq Coding Standards
PHPCS ruleset for WordPress projects developed at Haptiq.
Combines WordPress Coding Standards with PHPCompatibilityWP to catch both style violations and WordPress/PHP version compatibility issues.
Installation
The Composer installer plugin registers the standard automatically — no manual PHPCS path configuration needed.
Usage
Run PHPCS with the HaptiqWordPress standard:
Or copy the provided phpcs.xml.dist to your project root as phpcs.xml and run:
If phpcs.xml configures the use of HaptiqWordPress, run:
`
What it checks
| Rule group | Default severity | What it covers |
|---|---|---|
WordPress-Core |
warning | WordPress coding style and conventions |
WordPress-Extra |
warning | Stricter WordPress best practices |
PHPCompatibilityWP |
warning | PHP and WP API version compatibility |
All violations are warnings by default — they are reported but do not block CI. See Adjusting severity to promote specific groups to errors.
Targets: PHP 7.4–8.4 · WordPress 6.8+
Adjusting severity
To promote a rule group to an error in your project's phpcs.xml:
Excluding rules
Adding docblock enforcement
WordPress-Docs is available but not included by default. Add it to your phpcs.xml:
All versions of coding-standards with dependencies
dealerdirect/phpcodesniffer-composer-installer Version ^1.0
phpcompatibility/phpcompatibility-wp Version ^2.1.8
wp-coding-standards/wpcs Version ^3.3.0