PHPackages                             haptiq/coding-standards - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. haptiq/coding-standards

ActivePhpcodesniffer-standard[PSR &amp; Standards](/categories/psr-standards)

haptiq/coding-standards
=======================

Haptiq Coding Standards

0.2.0(1mo ago)03GPL-2.0-or-laterPHP ^7.4 || ^8.0

Since Jun 19Pushed 1mo agoCompare

[ Source](https://github.com/haptiq/coding-standards)[ Packagist](https://packagist.org/packages/haptiq/coding-standards)[ RSS](/packages/haptiq-coding-standards/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

Haptiq Coding Standards
=======================

[](#haptiq-coding-standards)

PHPCS ruleset for WordPress projects developed at Haptiq.

Combines [WordPress Coding Standards](https://github.com/WordPress/WordPress-Coding-Standards) with [PHPCompatibilityWP](https://github.com/PHPCompatibility/PHPCompatibilityWP) to catch both style violations and WordPress/PHP version compatibility issues.

Installation
------------

[](#installation)

```
composer require --dev haptiq/coding-standards
```

The [Composer installer plugin](https://github.com/PHPCSStandards/composer-installer) registers the standard automatically — no manual PHPCS path configuration needed.

Usage
-----

[](#usage)

Run PHPCS with the `HaptiqWordPress` standard:

```
vendor/bin/phpcs --standard=HaptiqWordPress .
```

Or copy the provided `phpcs.xml.dist` to your project root as `phpcs.xml` and run:

```
vendor/bin/phpcs
```

If `phpcs.xml` configures the use of `HaptiqWordPress`, run:

```
vendor/bin/phpcs
```

What it checks
--------------

[](#what-it-checks)

Rule groupDefault severityWhat it covers`WordPress-Core`warningWordPress coding style and conventions`WordPress-Extra`warningStricter WordPress best practices`PHPCompatibilityWP`warningPHP and WP API version compatibilityAll violations are warnings by default — they are reported but do not block CI. See [Adjusting severity](#adjusting-severity) to promote specific groups to errors.

**Targets:** PHP 7.4–8.4 · WordPress 6.8+

Adjusting severity
------------------

[](#adjusting-severity)

To promote a rule group to an error in your project's `phpcs.xml`:

```

    error

```

Excluding rules
---------------

[](#excluding-rules)

```

```

Adding docblock enforcement
---------------------------

[](#adding-docblock-enforcement)

`WordPress-Docs` is available but not included by default. Add it to your `phpcs.xml`:

```

```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance92

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

37d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20327583?v=4)[Haptiq](/maintainers/haptiq)[@haptiq](https://github.com/haptiq)

---

Top Contributors

[![crimann](https://avatars.githubusercontent.com/u/1335283?v=4)](https://github.com/crimann "crimann (10 commits)")

---

Tags

phpcswordpresscoding-standardswpcs

### Embed Badge

![Health badge](/badges/haptiq-coding-standards/health.svg)

```
[![Health](https://phpackages.com/badges/haptiq-coding-standards/health.svg)](https://phpackages.com/packages/haptiq-coding-standards)
```

###  Alternatives

[infinum/eightshift-coding-standards

Eightshift WordPress Coding Standards

1790.9k6](/packages/infinum-eightshift-coding-standards)[humanmade/coding-standards

Human Made Coding Standards

160443.1k60](/packages/humanmade-coding-standards)[wp-cli/wp-cli-tests

WP-CLI testing framework

423.1M143](/packages/wp-cli-wp-cli-tests)[automattic/vipwpcs

PHP\_CodeSniffer rules (sniffs) to enforce WordPress VIP minimum coding conventions

25811.4M205](/packages/automattic-vipwpcs)[wptrt/wpthemereview

PHP\_CodeSniffer rules (sniffs) to verify theme compliance with the rules for theme hosting on wordpress.org

216792.6k30](/packages/wptrt-wpthemereview)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.2M34](/packages/yoast-yoastcs)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
