PHPackages                             r2h/r2h-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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. r2h/r2h-coding-standard

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

r2h/r2h-coding-standard
=======================

The R2H coding standard.

v2.6.1(2mo ago)033.2k↓47.6%1MIT

Since Jun 8Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/R2H-BV/R2H-Coding-Standard)[ Packagist](https://packagist.org/packages/r2h/r2h-coding-standard)[ RSS](/packages/r2h-r2h-coding-standard/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (24)Used By (1)

R2H Coding Standard
===================

[](#r2h-coding-standard)

The opiniated R2H coding standard. This package includes a codesniffer standard and a Laravel Pint preset.

Installing
----------

[](#installing)

`composer require --dev r2h/r2h-coding-standard`

Usage
-----

[](#usage)

### PHPCS

[](#phpcs)

Assuming you've setup our standard as a preset. `./vendor/bin/phpcs --standard=./ruleset.xml ./`

### Laravel Pint

[](#laravel-pint)

`./vendor/bin/pint --config vendor/r2h/r2h-coding-standard/pint.json`

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance86

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

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

Recently: every ~43 days

Total

23

Last Release

68d ago

Major Versions

v1.3.1 → v2.0.02023-01-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/347f2e2934cf09c64cc5cef463ffb996e35531cf40d6d04ffd09103bc28317dc?d=identicon)[MichaelR2H](/maintainers/MichaelR2H)

---

Top Contributors

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

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[sylius-labs/coding-standard

Battle-tested coding standard configuration used in Sylius.

896.1M488](/packages/sylius-labs-coding-standard)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[suin/phpcs-psr4-sniff

PHP\_CodeSniffer sniff that checks class name matches PSR-4 project structure.

271.7M16](/packages/suin-phpcs-psr4-sniff)[mayflower/mo4-coding-standard

PHP CodeSniffer ruleset implementing the MO4 coding standards extending the Symfony coding standards.

17508.3k5](/packages/mayflower-mo4-coding-standard)[infinum/eightshift-coding-standards

Eightshift WordPress Coding Standards

1785.2k3](/packages/infinum-eightshift-coding-standards)[orisai/coding-standard

Strict PHP coding standard

19193.5k62](/packages/orisai-coding-standard)

PHPackages © 2026

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