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(1y ago)023.6k↓37.8%GPL-2.0-or-laterPHPPHP &gt;=7.1

Since Dec 26Pushed 1y 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 1mo 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

29

—

LowBetter than 59% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

692d 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.5k123.5M1.8k](/packages/slevomat-coding-standard)[wp-coding-standards/wpcs

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

2.8k42.5M1.6k](/packages/wp-coding-standards-wpcs)[drupal/coder

Coder is a library to review Drupal code.

3043.6M461](/packages/drupal-coder)[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

598161.9M1.9k](/packages/dealerdirect-phpcodesniffer-composer-installer)[phpcompatibility/phpcompatibility-wp

A ruleset for PHP\_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.

22130.6M587](/packages/phpcompatibility-phpcompatibility-wp)[phpcsstandards/phpcsextra

A collection of sniffs and standards for use with PHP\_CodeSniffer.

10324.3M44](/packages/phpcsstandards-phpcsextra)

PHPackages © 2026

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