PHPackages                             moderntribe/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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. moderntribe/coding-standards

ActivePhpcodesniffer-standard[Validation &amp; Sanitization](/categories/validation)

moderntribe/coding-standards
============================

The Modern Tribe Coding Standard for PHPCS

v3.3.0(2y ago)937.6k↑22.7%1[1 PRs](https://github.com/moderntribe/coding-standards/pulls)7MITPHP &gt;=8.0

Since May 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/moderntribe/coding-standards)[ Packagist](https://packagist.org/packages/moderntribe/coding-standards)[ RSS](/packages/moderntribe-coding-standards/feed)WikiDiscussions 3.x Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (26)Used By (7)

Modern Tribe Coding Standards
=============================

[](#modern-tribe-coding-standards)

The Modern Tribe Coding Standard is a set of [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer)rules for use primarily with the [SquareOne](https://github.com/moderntribe/square-one) framework.

Requirements
------------

[](#requirements)

- PHP ^8.0

Install
-------

[](#install)

Composer v2:

```
composer require --dev moderntribe/coding-standards "^3.0"`
```

Composer v1:

Add to the `repositories` object:

```
    {
      "type": "vcs",
      "url": "git@github.com:moderntribe/coding-standards.git"
    }
```

And `require-dev`:

```
  "moderntribe/coding-standards": "^3.0"
```

Project ruleset
---------------

[](#project-ruleset)

> Ensure you're running PHP 8.0 locally!

To use this ruleset, create a `phpcs.xml.dist` in the root of the project and add the following content:

```

	./wp-content/plugins/core
	./wp-content/themes/core
	./wp-content/mu-plugins

	*-config.php
	*vendor/
	*tests/*
	*.twig
	*webpack/

```

> Add `phpcs.xml` to your `.gitignore`

Manual Usage
------------

[](#manual-usage)

**PHPCS**

```
./vendor/bin/phpcs --standard=ModernTribe /path/to/files/**.php
```

**PHPCBF**

```
./vendor/bin/phpcbf --standard=ModernTribe /path/to/files/**.php
```

Resources:
----------

[](#resources)

- [SquareOne Framework](https://github.com/moderntribe/square-one)
- [Documentation](https://github.com/moderntribe/square-one/blob/main/docs/tooling/phpcs.md)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 91.9% 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 ~36 days

Recently: every ~78 days

Total

25

Last Release

948d ago

Major Versions

v1.0.5 → v2.0.02021-05-21

v1.0.6 → v2.1.02022-02-04

v1.0.8 → v2.1.42022-04-04

v1.0.9 → v3.0.02022-08-11

2.x-dev → v3.2.02023-02-20

PHP version history (4 changes)v1.0.4PHP ^7.2 || ^8.0

v3.0.0PHP &gt;=7.4

v3.1.0PHP ^8.0

v3.2.0PHP &gt;=8.0

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/7f24821ddc28f26fff6b85940d5c65cf179e7487695383944b80f2e5257db6a0?d=identicon)[nickpelton](/maintainers/nickpelton)

---

Top Contributors

[![defunctl](https://avatars.githubusercontent.com/u/1066195?v=4)](https://github.com/defunctl "defunctl (34 commits)")[![ChrisMKindred](https://avatars.githubusercontent.com/u/396942?v=4)](https://github.com/ChrisMKindred "ChrisMKindred (1 commits)")[![GaryJones](https://avatars.githubusercontent.com/u/88371?v=4)](https://github.com/GaryJones "GaryJones (1 commits)")[![lindseyolson](https://avatars.githubusercontent.com/u/25675147?v=4)](https://github.com/lindseyolson "lindseyolson (1 commits)")

---

Tags

phpcsstatic analysiscodestylestandardrulessniffercodingsniffschecksmoderntribe

### Embed Badge

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

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

###  Alternatives

[doctrine/coding-standard

The Doctrine Coding Standard is a set of PHPCS rules applied to all Doctrine projects.

31914.1M739](/packages/doctrine-coding-standard)[leroy-merlin-br/coding-standard

The coding standard for PHP projects on LMBR

2137.0k10](/packages/leroy-merlin-br-coding-standard)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)

PHPackages © 2026

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