PHPackages                             chi-teck/drupal-coder-extension - 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. chi-teck/drupal-coder-extension

ActivePhpcodesniffer-standard

chi-teck/drupal-coder-extension
===============================

An extension of Drupal coding standards.

1.3.0(3y ago)578.6k↑19.6%12GPL-2.0-or-laterPHP &gt;=7.3

Since May 3Pushed 1y ago3 watchersCompare

[ Source](https://github.com/Chi-teck/drupal-coder-extension)[ Packagist](https://packagist.org/packages/chi-teck/drupal-coder-extension)[ RSS](/packages/chi-teck-drupal-coder-extension/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (16)Used By (2)

Extended Drupal Coding Standard
===============================

[](#extended-drupal-coding-standard)

This project offers a set of preconfigured rules for PHP Code Sniffer mainly related to new PHP features that are not covered by Drupal coding standards yet.

System Requirements
-------------------

[](#system-requirements)

PHP 8.1+

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

[](#installation)

Install the standard locally through Composer.

```
composer require --dev chi-teck/drupal-coder-extension
```

Add `DrupalExtended` standard to your project's `phpcs.xml`.

```

      ./src/Exception

```

A complete example of `phpcs.xml`:

```

  PHP Code Sniffer configuration for My Project.

  ./web/modules/custom
  ./web/themes/custom
  ./tests

  ./docroot/themes/custom/example/node_modules

```

Usage
-----

[](#usage)

Run the `phpcs` script to check custom code.

```
./vendor/bin/phpcs -ps --standard=phpcs.xml

```

Run the `phpcbf` script to automatically correct coding standard violations.

```
./vendor/bin/phpcbf

```

You also can put this command into projects `composer.json`:

```
{
  …
  "scripts": {
    "phpcs": "vendor/bin/phpcs -ps"
  }
}
```

Then you can use it like

```
composer phpcs
```

Links
-----

[](#links)

- [PHP Code Sniffer](https://github.com/squizlabs/PHP_CodeSniffer)
- [Drupal Coding Standards](https://www.drupal.org/node/2802991)
- [Drupal Coder](https://www.drupal.org/project/coder)
- [Slevomat Coding Standard](https://github.com/slevomat/coding-standard)

License
-------

[](#license)

GNU General Public License, version 2 or later.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 56.8% 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 ~126 days

Recently: every ~95 days

Total

15

Last Release

434d ago

Major Versions

1.3.0 → 2.0.0-alpha12023-02-23

PHP version history (2 changes)1.0.0PHP &gt;=7.3

2.0.0-alpha1PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/673139?v=4)[Ivan](/maintainers/chi-teck)[@Chi-teck](https://github.com/Chi-teck)

---

Top Contributors

[![Niklan](https://avatars.githubusercontent.com/u/2356744?v=4)](https://github.com/Niklan "Niklan (21 commits)")[![Chi-teck](https://avatars.githubusercontent.com/u/673139?v=4)](https://github.com/Chi-teck "Chi-teck (15 commits)")[![chx](https://avatars.githubusercontent.com/u/193045?v=4)](https://github.com/chx "chx (1 commits)")

### Embed Badge

![Health badge](/badges/chi-teck-drupal-coder-extension/health.svg)

```
[![Health](https://phpackages.com/badges/chi-teck-drupal-coder-extension/health.svg)](https://phpackages.com/packages/chi-teck-drupal-coder-extension)
```

###  Alternatives

[drupal/coder

Coder is a library to review Drupal code.

3043.6M461](/packages/drupal-coder)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[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)

PHPackages © 2026

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