PHPackages                             mathieu-bour/coding-standard - 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. mathieu-bour/coding-standard

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

mathieu-bour/coding-standard
============================

Mathieu Bour's PHP\_CodeSniffer coding standard.

1.0.1(5y ago)01.5k2MITPHPPHP ^7.1.3 || ^8.0

Since Dec 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mathieu-bour/coding-standard)[ Packagist](https://packagist.org/packages/mathieu-bour/coding-standard)[ Docs](https://github.com/mathieu-bour/coding-standard)[ RSS](/packages/mathieu-bour-coding-standard/feed)WikiDiscussions main Synced 6d ago

READMEChangelogDependencies (6)Versions (3)Used By (2)

mathieu-bour/coding-standard
============================

[](#mathieu-bourcoding-standard)

[![version](https://camo.githubusercontent.com/74e5a483d70a43169471d6756dc93d7443884784ae9cdfafefb72e67fb126057/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6174686965752d626f75722f636f64696e672d7374616e646172643f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/74e5a483d70a43169471d6756dc93d7443884784ae9cdfafefb72e67fb126057/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6174686965752d626f75722f636f64696e672d7374616e646172643f7374796c653d666c61742d737175617265)[![license](https://camo.githubusercontent.com/dd4a72ac9b6e87e4274cd0ad74d45510ab7407dbe3fb9186b39bb7230ce19170/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d6174686965752d626f75722f636f64696e672d7374616e646172643f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/dd4a72ac9b6e87e4274cd0ad74d45510ab7407dbe3fb9186b39bb7230ce19170/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d6174686965752d626f75722f636f64696e672d7374616e646172643f7374796c653d666c61742d737175617265)[![php-version](https://camo.githubusercontent.com/1e28b40046b7fdc92f70d8469385d0d843a2a52121f9645941c797015133f921/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d6174686965752d626f75722f636f64696e672d7374616e646172643f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/1e28b40046b7fdc92f70d8469385d0d843a2a52121f9645941c797015133f921/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d6174686965752d626f75722f636f64696e672d7374616e646172643f7374796c653d666c61742d737175617265)

My personal PHP\_CodeSniffer standard, derived from [mathrix-education/coding-standard](https://github.com/mathrix-education/coding-standard). Uses the sniffs from [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) and [Slevomat Coding Standard](https://github.com/slevomat/coding-standard).

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

[](#installation)

```
composer require mathieu-bour/coding-standard
```

In your phpcs.xml(.dist) file, refer to the standard with:

```

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

1967d ago

PHP version history (2 changes)1.0.0PHP ^7.2 || ^8.0

1.0.1PHP ^7.1.3 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/73c2dfce49dda5261f96316534da32fe654b5318a85049d85b651bdda2aeb167?d=identicon)[Mathieu Bour](/maintainers/Mathieu%20Bour)

---

Top Contributors

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

---

Tags

phpcsstylestandardrulescodingsniffsmathrix

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/mathieu-bour-coding-standard/health.svg)

```
[![Health](https://phpackages.com/badges/mathieu-bour-coding-standard/health.svg)](https://phpackages.com/packages/mathieu-bour-coding-standard)
```

###  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)[drupal/coder

Coder is a library to review Drupal code.

3043.6M461](/packages/drupal-coder)[moodlehq/moodle-cs

Moodle Coding Sniffer rules

242.8M5](/packages/moodlehq-moodle-cs)

PHPackages © 2026

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