PHPackages                             florenttorregrosa/phpcs\_drupal - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. florenttorregrosa/phpcs\_drupal

ActivePhpcodesniffer-standard[Testing &amp; Quality](/categories/testing)

florenttorregrosa/phpcs\_drupal
===============================

Additional rules for Drupal coding standards.

1.0.1(2y ago)026.1k↓52.6%GPL-2.0-or-laterPHPPHP &gt;=7.1

Since Dec 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/FlorentTorregrosa/phpcs-drupal)[ Packagist](https://packagist.org/packages/florenttorregrosa/phpcs_drupal)[ Docs](https://github.com/FlorentTorregrosa/phpcs-drupal)[ RSS](/packages/florenttorregrosa-phpcs-drupal/feed)WikiDiscussions 1.0.x Synced 2w ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Florent Torregrosa PHPCS Drupal
===============================

[](#florent-torregrosa-phpcs-drupal)

[![Automated tests](https://github.com/FlorentTorregrosa/phpcs-drupal/workflows/Tests/badge.svg)](https://github.com/FlorentTorregrosa/phpcs-drupal/actions)

This library defines rules for [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer).

It is intended to be used in addition of Drupal [Coder](https://www.drupal.org/project/coder)and it does not replace it, only provides additional rules.

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

[](#installation)

Same installation instructions as Drupal [Coder](https://www.drupal.org/project/coder).

Replace the Composer package `drupal/coder` by `florenttorregrosa/phpcs_drupal`in the instructions.

Configuration
-------------

[](#configuration)

Same configuration instructions as Drupal [Coder](https://www.drupal.org/project/coder).

The additional ruleset is named `FlorentTorregrosaDrupalPractice`.

Maintainers
-----------

[](#maintainers)

- [Florent Torregrosa](https://www.drupal.org/u/grimreaper)

Credits
-------

[](#credits)

[Coder](https://www.drupal.org/project/coder) maintainers and contributors, the structure of the package is a modified copy of the work done on Coder.

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Total

3

Last Release

783d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f81f2e7ca24b170cc74f416183627f57a41af342f850cfa232d5c40e9b688ffd?d=identicon)[FlorentTorregrosa](/maintainers/FlorentTorregrosa)

---

Top Contributors

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

---

Tags

standardsphpcscode review

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/florenttorregrosa-phpcs-drupal/health.svg)

```
[![Health](https://phpackages.com/badges/florenttorregrosa-phpcs-drupal/health.svg)](https://phpackages.com/packages/florenttorregrosa-phpcs-drupal)
```

###  Alternatives

[slevomat/coding-standard

Slevomat Coding Standard for PHP\_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.

1.5k137.8M2.5k](/packages/slevomat-coding-standard)[drupal/coder

Coder is a library to review Drupal code.

3046.8M629](/packages/drupal-coder)[wp-coding-standards/wpcs

PHP\_CodeSniffer rules (sniffs) to enforce WordPress coding conventions

2.8k49.8M2.6k](/packages/wp-coding-standards-wpcs)[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

601180.6M2.7k](/packages/dealerdirect-phpcodesniffer-composer-installer)[humanmade/coding-standards

Human Made Coding Standards

161450.0k66](/packages/humanmade-coding-standards)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13195.6k8](/packages/youwe-testing-suite)

PHPackages © 2026

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