PHPackages                             wpmoo/wpmoo-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. wpmoo/wpmoo-coding-standards

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

wpmoo/wpmoo-coding-standards
============================

Shared PHPCS standard and custom sniffs for WPMoo projects.

02.5k1PHP

Since Oct 23Pushed 5mo agoCompare

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

READMEChangelogDependenciesVersions (2)Used By (1)

WPMoo Coding Standards
======================

[](#wpmoo-coding-standards)

This repository contains the shared PHP\_CodeSniffer (PHPCS) ruleset and custom sniffs used across WPMoo projects.

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

[](#installation)

Add the package to your project as a development dependency. The package ships as a `phpcodesniffer-standard`, so the `dealerdirect/phpcodesniffer-composer-installer` plugin will automatically register the standard with PHPCS.

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

Usage
-----

[](#usage)

Reference the WPMoo standard from your project-level `phpcs.xml` or `phpcs.xml.dist` file:

```

    public_html/wp-content/plugins/example-plugin

```

Run PHPCS as usual and it will apply the shared rules (WordPress Core + Docs + Extra, PHPCompatibilityWP) plus any custom sniffs provided by this package.

```
vendor/bin/phpcs
```

Development
-----------

[](#development)

- The canonical ruleset lives in `WPMoo/ruleset.xml`.
- Custom sniffs are placed under `WPMoo/Sniffs` following the PHPCS naming convention.
- A local `phpcs.xml.dist` is provided so you can run the standard on this package itself via `composer install && vendor/bin/phpcs`.

Feel free to extend the rules or add additional sniffs to match the WPMoo guidelines.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance49

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity15

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3678df7072ab715efa1e92721f436152e0175300b6dd2f3286e4401d00eab9df?d=identicon)[cangir](/maintainers/cangir)

---

Top Contributors

[![cangir](https://avatars.githubusercontent.com/u/11135930?v=4)](https://github.com/cangir "cangir (9 commits)")

### Embed Badge

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

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

###  Alternatives

[phpdocumentor/type-resolver

A PSR-5 based resolver of Class names, Types and Structural Element Names

9.2k719.5M166](/packages/phpdocumentor-type-resolver)[pimple/pimple

Pimple, a simple Dependency Injection Container

2.7k130.5M1.4k](/packages/pimple-pimple)[league/container

A fast and intuitive dependency injection container.

86387.8M343](/packages/league-container)[stella-maris/clock

A pre-release of the proposed PSR-20 Clock-Interface

7947.5M2](/packages/stella-maris-clock)[wptrt/wpthemereview

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

217736.5k29](/packages/wptrt-wpthemereview)[inpsyde/modularity

Modular PSR-11 implementation for WordPress plugins, themes or libraries.

54383.3k3](/packages/inpsyde-modularity)

PHPackages © 2026

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