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

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

mediebruket/wp-coding-standards
===============================

Internal WordPress coding standards

1.2.0(5y ago)0103MITPHP ^7.3|^8.0

Since Dec 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mediebruket/wp-coding-standards)[ Packagist](https://packagist.org/packages/mediebruket/wp-coding-standards)[ RSS](/packages/mediebruket-wp-coding-standards/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (5)Used By (0)

Mediebruket WordPress Coding Standards
======================================

[](#mediebruket-wordpress-coding-standards)

We've transitioned to use [PSR-12 coding style](https://www.php-fig.org/psr/psr-12/) for our own Wordpress projects.

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

[](#installation)

```
composer require mediebruket/wp-coding-standards --dev
```

Copy and modify the sample configuration file.

```
cp vendor/mediebruket/wp-coding-standards/phpcs.xml.dist.sample phpcs.xml.dist
```

Usage
-----

[](#usage)

Check manually by running PHPCS from command line and specify the coding standard:

```
vendor/bin/phpcs --standard="Mediebruket"
```

### PHPStorm Setup

[](#phpstorm-setup)

Alternatively, the coding standard can be enabled in Phpstorm.

Phpstorm needs to know where PHP\_CodeSniffer is located. Navigate to **Languages &amp; Frameworks &gt; PHP &gt; Quality tools &gt; PHP\_CodeSniffer** and specify the path the `phpcs` executable in your `vendor` directory by clicking **…** . Additionally, you can add the path to `phpcbf` as well.

Then you'll have to specify the coding standard. Navigate to **Editor &gt; Inspections &gt; PHP &gt; Quality tools &gt; PHP\_CodeSniffer validation &gt; Options &gt; Coding standard**. Chose the preferred coding standard from the options section.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~36 days

Total

4

Last Release

1876d ago

Major Versions

0.1.0 → 1.0.02021-02-09

PHP version history (2 changes)0.1.0PHP ^7.3

1.1.0PHP ^7.3|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/110553702?v=4)[havardg](/maintainers/havardg)[@HavardG](https://github.com/HavardG)

---

Top Contributors

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

---

Tags

codesniffer-rulesphpcswordpress

### Embed Badge

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

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

###  Alternatives

[phpcsstandards/phpcsutils

A suite of utility functions for use with PHP\_CodeSniffer

6233.4M58](/packages/phpcsstandards-phpcsutils)[woocommerce/woocommerce-sniffs

WooCommerce sniffs

496.8M42](/packages/woocommerce-woocommerce-sniffs)[humanmade/coding-standards

Human Made Coding Standards

161424.0k48](/packages/humanmade-coding-standards)[laminas/laminas-coding-standard

Laminas Coding Standard

331.7M534](/packages/laminas-laminas-coding-standard)[mrm-commerce/magento-coding-standard-phpcs

MRM Commerce PHP Code Sniffer Coding Standard designed for Magento 2 applications

4751.2k](/packages/mrm-commerce-magento-coding-standard-phpcs)[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)
