PHPackages                             itinerisltd/itineris-wp-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. itinerisltd/itineris-wp-coding-standards

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

itinerisltd/itineris-wp-coding-standards
========================================

PHP\_CodeSniffer rules for Itineris WordPress projects

1.1.0(3mo ago)280.4k↓22.7%1[4 PRs](https://github.com/ItinerisLtd/itineris-wp-coding-standards/pulls)20MITPHP ^8.1

Since Oct 18Pushed 3mo ago10 watchersCompare

[ Source](https://github.com/ItinerisLtd/itineris-wp-coding-standards)[ Packagist](https://packagist.org/packages/itinerisltd/itineris-wp-coding-standards)[ Docs](https://itinerisltd.github.io/itineris-wp-coding-standards/)[ RSS](/packages/itinerisltd-itineris-wp-coding-standards/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (18)Used By (20)

Itineris WP Coding Standards
============================

[](#itineris-wp-coding-standards)

[![Packagist Version](https://camo.githubusercontent.com/6b23c234b2ee83cc215e19e3fc9b29093a8f8af962e19e80c733b672b5709c5d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6974696e657269736c74642f6974696e657269732d77702d636f64696e672d7374616e64617264732e737667)](https://packagist.org/packages/itinerisltd/itineris-wp-coding-standards)[![PHP from Packagist](https://camo.githubusercontent.com/b4702b24ec6ba07aaa7872b2ccaa0449bfc9136e8681aa8c7d3a1d90b5d92ac0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6974696e657269736c74642f6974696e657269732d77702d636f64696e672d7374616e64617264732e737667)](https://packagist.org/packages/itinerisltd/itineris-wp-coding-standards)[![Packagist Downloads](https://camo.githubusercontent.com/3da1564becca012a3e1e04eee81b0f93254b1deafdf6aff50c8dc9c4d9bc0cba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6974696e657269736c74642f6974696e657269732d77702d636f64696e672d7374616e64617264732e737667)](https://packagist.org/packages/itinerisltd/itineris-wp-coding-standards)[![GitHub License](https://camo.githubusercontent.com/a87625d7074a33fc23d107d5ba0df83f0a53c147d263952b85a429fcdb983515/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6974696e657269736c74642f6974696e657269732d77702d636f64696e672d7374616e64617264732e737667)](https://github.com/ItinerisLtd/itineris-wp-coding-standards/blob/master/LICENSE)[![Hire Itineris](https://camo.githubusercontent.com/28070f6fe57ce0e650e45ceddf0f294c6ebb8e5248af50e801ed5d81026c076c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f486972652d4974696e657269732d6666363962342e737667)](https://www.itineris.co.uk/contact/)

- [Goal](#goal)
- [Installation](#installation)
- [Usage](#usage)
- [Required Readings](#required-readings)
- [FAQs](#faqs)
    - [Will you add support for older PHP versions?](#will-you-add-support-for-older-php-versions)
    - [It looks awesome. Where can I find some more goodies like this?](#it-looks-awesome-where-can-i-find-some-more-goodies-like-this)
    - [This isn't on wp.org. Where can I give a ⭐⭐⭐⭐⭐ review?](#this-isnt-on-wporg-where-can-i-give-a-starstarstarstarstar-review)
- [Feedback](#feedback)
- [Security](#security)
- [Credits](#credits)
- [License](#license)

Goal
----

[](#goal)

[Itineris WP Coding Standards](https://github.com/ItinerisLtd/itineris-wp-coding-standards) is a project with rulesets for code style and quality tools to be used in Itineris WordPress projects.

It is a mix of [PSR-1](https://www.php-fig.org/psr/psr-1/), [PSR-2](https://www.php-fig.org/psr/psr-2), [PSR-4](https://www.php-fig.org/psr/psr-4/), [PSR-12](https://github.com/php-fig/fig-standards/blob/master/proposed/extended-coding-style-guide.md), [Slevomat](https://github.com/slevomat/coding-standard) and [WordPress](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards) coding standards.

Whenever there's a conflict between PSR and WPCS, always prefer PSR.

Currently, it works for WordPress plugins. Using it on [Bedrock](https://github.com/roots/bedrock) or [Sage](https://github.com/roots/sage) requires some tweaking.

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

[](#installation)

```
composer require --dev itinerisltd/itineris-wp-coding-standards
```

Usage
-----

[](#usage)

First, create [`phpcs.xml`](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset) on project root:

```

    ./

    /my-awesome-plugin.php
    /tests/*
    /vendor/*

```

Then, define [composer scripts](https://getcomposer.org/doc/articles/scripts.md) in `composer.json`:

```
{
  "scripts": {
    "style:check": "phpcs",
    "style:fix": "phpcbf"
  }
}
```

Run the commands:

```
composer style:check
composer style:fix
```

Required Readings
-----------------

[](#required-readings)

- [Whitelisting code which flags errors](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Whitelisting-code-which-flags-errors)
- [Flagged superglobal usage in WordPress VIP](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Flagged-superglobal-usage-in-WordPress-VIP)
- [Fixing errors for input data](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Fixing-errors-for-input-data)
- [Sanitizing array input data](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Sanitizing-array-input-data)
- [Customizable sniff properties](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties)

FAQs
----

[](#faqs)

### Will you add support for older PHP versions?

[](#will-you-add-support-for-older-php-versions)

Never! This plugin will only work on [actively supported PHP versions](https://secure.php.net/supported-versions.php).

Don't use it on **end of life** or **security fixes only** PHP versions.

### It looks awesome. Where can I find some more goodies like this?

[](#it-looks-awesome-where-can-i-find-some-more-goodies-like-this)

- Articles on [Itineris' blog](https://www.itineris.co.uk/blog/)
- More projects on [Itineris' GitHub profile](https://github.com/itinerisltd)
- More plugins on [Itineris](https://profiles.wordpress.org/itinerisltd/#content-plugins) and [TangRufus](https://profiles.wordpress.org/tangrufus/#content-plugins) wp.org profiles
- Follow [@itineris\_ltd](https://twitter.com/itineris_ltd) and [@TangRufus](https://twitter.com/tangrufus) on Twitter
- Hire [Itineris](https://www.itineris.co.uk/services/) to build your next awesome site

### This isn't on wp.org. Where can I give a ⭐⭐⭐⭐⭐ review?

[](#this-isnt-on-wporg-where-can-i-give-a-starstarstarstarstar-review)

Thanks! Glad you like it. It's important to let my boss knows somebody is using this project. Please consider:

- tweet something good with mentioning [@itineris\_ltd](https://twitter.com/itineris_ltd) and [@TangRufus](https://twitter.com/tangrufus)
- ⭐ star this [Github repo](https://github.com/ItinerisLtd/itineris-wp-coding-standards)
- 👀 watch this [Github repo](https://github.com/ItinerisLtd/itineris-wp-coding-standards)
- write blog posts
- submit [pull requests](https://github.com/ItinerisLtd/itineris-wp-coding-standards)
- [hire Itineris](https://www.itineris.co.uk/services/)

Feedback
--------

[](#feedback)

**Please provide feedback!** We want to make this library useful in as many projects as possible. Please submit an [issue](https://github.com/ItinerisLtd/itineris-wp-coding-standards/issues/new) and point out what you do and don't like, or fork the project and make suggestions. **No issue is too small.**

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

[Itineris WP Coding Standards](https://github.com/ItinerisLtd/itineris-wp-coding-standards) is a [Itineris Limited](https://www.itineris.co.uk/) project created by [Tang Rufus](https://typist.tech).

Full list of contributors can be found [here](https://github.com/ItinerisLtd/itineris-wp-coding-standards/graphs/contributors).

License
-------

[](#license)

[Itineris WP Coding Standards](https://github.com/ItinerisLtd/itineris-wp-coding-standards) is released under the [MIT License](https://opensource.org/licenses/MIT).

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance78

Regular maintenance activity

Popularity34

Limited adoption so far

Community28

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 68.2% 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 ~189 days

Recently: every ~556 days

Total

15

Last Release

119d ago

Major Versions

0.4.1 → 1.0.02023-04-17

PHP version history (5 changes)0.1.0PHP ^7.1

0.2.2PHP ^7.0

0.3.0PHP ^7.2

0.4.1PHP ^7.2 || ^8.0

1.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/c1b05c8ed4ea3f68173555264d0226d5faeb7f315ed9df91890c351ef576ce72?d=identicon)[TangRufus](/maintainers/TangRufus)

![](https://www.gravatar.com/avatar/1f6b0052977c5b438b9677de0189a69e4c2aa7c945eedd76fa3adac30dab067c?d=identicon)[codepuncher](/maintainers/codepuncher)

---

Top Contributors

[![tangrufus](https://avatars.githubusercontent.com/u/2259834?v=4)](https://github.com/tangrufus "tangrufus (73 commits)")[![codepuncher](https://avatars.githubusercontent.com/u/8135396?v=4)](https://github.com/codepuncher "codepuncher (32 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (2 commits)")

---

Tags

coding-standardsphpcs-standardstandardsphpcswordpressitineris

### Embed Badge

![Health badge](/badges/itinerisltd-itineris-wp-coding-standards/health.svg)

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

###  Alternatives

[automattic/vipwpcs

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

25510.2M145](/packages/automattic-vipwpcs)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[wptrt/wpthemereview

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

217736.5k29](/packages/wptrt-wpthemereview)[infinum/eightshift-coding-standards

Eightshift WordPress Coding Standards

1785.2k3](/packages/infinum-eightshift-coding-standards)[mayflower/mo4-coding-standard

PHP CodeSniffer ruleset implementing the MO4 coding standards extending the Symfony coding standards.

17508.3k5](/packages/mayflower-mo4-coding-standard)[drupal/coder

Coder is a library to review Drupal code.

3043.6M461](/packages/drupal-coder)

PHPackages © 2026

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