PHPackages                             the-events-calendar/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. the-events-calendar/coding-standards

ActivePhpcodesniffer-standard[Utility &amp; Helpers](/categories/utility)

the-events-calendar/coding-standards
====================================

Code sniffing rules for StellarWP

2.1.1(7mo ago)82.0k12GPL-3.0+PHPPHP &gt;=7.4

Since Jan 8Pushed 6mo ago37 watchersCompare

[ Source](https://github.com/stellarwp/coding-standards)[ Packagist](https://packagist.org/packages/the-events-calendar/coding-standards)[ RSS](/packages/the-events-calendar-coding-standards/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (6)Versions (9)Used By (2)

StellarWP Coding Standards for PHP CodeSniffer
==============================================

[](#stellarwp-coding-standards-for-php-codesniffer)

StellarWP coding standards uses a combination of:

- Generic (part of PHP\_CodeSniffer)
- PEAR (part of PHP\_CodeSniffer)
- PSR2 (part of PHP\_CodeSniffer)
- Squiz (part of PHP\_CodeSniffer)
- Zend (part of PHP\_CodeSniffer)
- Custom sniffs (a few based on [WordPress](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards))

Important

Make sure that the command `phpcs` is on version `3.4.2`+. In order to install it on that specifc version globally you can use:

```
composer global require "squizlabs/php_codesniffer=3.4.2"
```

Complete Installation Script
----------------------------

[](#complete-installation-script)

For a full installation of all required components, you can use the following script. This will install all necessary packages globally and configure PHPCS to use them:

```
#!/bin/bash

# Install PHP_CodeSniffer
composer global require "squizlabs/php_codesniffer=^3.8.0"

# Install required coding standards and dependencies
composer global require "wp-coding-standards/wpcs:^3.0.0"
composer global require "automattic/vipwpcs:^3.0"
composer global require "phpcsstandards/phpcsextra:*"
composer global require "phpcsstandards/phpcsutils:*"
composer global require "stellarwp/coding-standards:*"
composer global require "sirbrillig/phpcs-variable-analysis:*"
composer global require "slevomat/coding-standard:^8.14.0"

# Update PHPCS installed paths to include all standards
phpcs --config-set installed_paths "$(phpcs --config-show | grep installed_paths | awk '{ print $2 }'),${HOME}/.composer/vendor/phpcsstandards/phpcsextra,${HOME}/.composer/vendor/phpcsstandards/phpcsutils,${HOME}/.composer/vendor/wp-coding-standards/wpcs,${HOME}/.composer/vendor/automattic/vipwpcs,${HOME}/.composer/vendor/stellarwp/coding-standards,${HOME}/.composer/vendor/sirbrillig/phpcs-variable-analysis,${HOME}/.composer/vendor/slevomat/coding-standard"

# Verify installation
echo "Installed PHPCS version:"
phpcs --version
echo ""
echo "Installed coding standards:"
phpcs -i
```

Note

The script assumes your global Composer binaries are in your PATH. Adjust the paths in the script if your Composer global installation directory is different.

Setup on PHPStorm
-----------------

[](#setup-on-phpstorm)

You can follow [this guide](https://confluence.jetbrains.com/display/PhpStorm/PHP+Code+Sniffer+in+PhpStorm#PHPCodeSnifferinPhpStorm-4.1.Obtainingcustomcodestyles) the only step you can replace is the one on **Installing via Composer** by the one above to install the 3.4.2 version instead.

Example Usage via `phpcs.xml` File
----------------------------------

[](#example-usage-via-phpcsxml-file)

```

        */tests/*

        src/Test.php

    */tests/_support/_generated/*
    */vendor/*

```

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance70

Regular maintenance activity

Popularity24

Limited adoption so far

Community28

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50.4% 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 ~88 days

Recently: every ~152 days

Total

8

Last Release

229d ago

Major Versions

1.0.2 → 2.0.02024-01-19

0.9 → 2.1.02025-04-25

PHP version history (2 changes)1.0.0PHP &gt;=7.4

0.9PHP ^5.6 | ^7.0 | ^8.0

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/70a2847a265444714b48c64eceb3ca742baa3a56757ce65b18bd7bbbbf910312?d=identicon)[dpanta94](/maintainers/dpanta94)

![](https://www.gravatar.com/avatar/97fd764aa710e8d8263a7e3b3fececdfd736b8aad8055227bf592ddf50ad15ba?d=identicon)[stellarwp](/maintainers/stellarwp)

---

Top Contributors

[![borkweb](https://avatars.githubusercontent.com/u/430385?v=4)](https://github.com/borkweb "borkweb (67 commits)")[![Camwyn](https://avatars.githubusercontent.com/u/929375?v=4)](https://github.com/Camwyn "Camwyn (27 commits)")[![bordoni](https://avatars.githubusercontent.com/u/236579?v=4)](https://github.com/bordoni "bordoni (9 commits)")[![rafsuntaskin](https://avatars.githubusercontent.com/u/7523321?v=4)](https://github.com/rafsuntaskin "rafsuntaskin (8 commits)")[![ggwicz](https://avatars.githubusercontent.com/u/875201?v=4)](https://github.com/ggwicz "ggwicz (7 commits)")[![defunctl](https://avatars.githubusercontent.com/u/1066195?v=4)](https://github.com/defunctl "defunctl (5 commits)")[![zbtirrell](https://avatars.githubusercontent.com/u/576707?v=4)](https://github.com/zbtirrell "zbtirrell (2 commits)")[![cliffordp](https://avatars.githubusercontent.com/u/1812179?v=4)](https://github.com/cliffordp "cliffordp (2 commits)")[![mitogh](https://avatars.githubusercontent.com/u/3921289?v=4)](https://github.com/mitogh "mitogh (2 commits)")[![vodanh1213](https://avatars.githubusercontent.com/u/1306960?v=4)](https://github.com/vodanh1213 "vodanh1213 (2 commits)")[![renventura](https://avatars.githubusercontent.com/u/7537202?v=4)](https://github.com/renventura "renventura (1 commits)")[![sc0ttkclark](https://avatars.githubusercontent.com/u/709662?v=4)](https://github.com/sc0ttkclark "sc0ttkclark (1 commits)")

---

Tags

phpcsphpcs-standardstandardsphpcswordpress

### Embed Badge

![Health badge](/badges/the-events-calendar-coding-standards/health.svg)

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

###  Alternatives

[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[woocommerce/woocommerce-sniffs

WooCommerce sniffs

496.8M40](/packages/woocommerce-woocommerce-sniffs)[automattic/vipwpcs

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

25510.2M144](/packages/automattic-vipwpcs)[inpsyde/php-coding-standards

PHP 7.4+ coding standards for Syde WordPress projects.

101163.9k45](/packages/inpsyde-php-coding-standards)[infinum/eightshift-coding-standards

Eightshift WordPress Coding Standards

1785.2k3](/packages/infinum-eightshift-coding-standards)[syde/phpcs

Syde PHP coding standards for WordPress projects.

1019.7k7](/packages/syde-phpcs)

PHPackages © 2026

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