PHPackages                             openeuropa/code-review-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. openeuropa/code-review-drupal

ActiveLibrary

openeuropa/code-review-drupal
=============================

OpenEuropa code review drupal component.

1.x-dev(1y ago)07.2k↓48.5%[2 PRs](https://github.com/openeuropa/code-review-drupal/pulls)20EUPL-1.2PHP &gt;=8.1

Since Oct 15Pushed 5mo ago12 watchersCompare

[ Source](https://github.com/openeuropa/code-review-drupal)[ Packagist](https://packagist.org/packages/openeuropa/code-review-drupal)[ RSS](/packages/openeuropa-code-review-drupal/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (5)Used By (20)

code-review-drupal
==================

[](#code-review-drupal)

[![Packagist](https://camo.githubusercontent.com/8a3018986b38164ff9ef30940ff0c099c779e3c931c7179532cc5c1c39e772ff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f70656e6575726f70612f636f64652d7265766965772d64727570616c2e737667)](https://packagist.org/packages/openeuropa/code-review-drupal)

Coding standard dependencies for Drupal components.

### Installation

[](#installation)

Install the code review component via Composer:

```
composer require --dev openeuropa/code-review-drupal
```

In your project root create the following `grumphp.yml.dist`:

```
imports:
  - { resource: ./vendor/openeuropa/code-review-drupal/dist/drupal-conventions.yml }
```

### Commands

[](#commands)

GrumPHP tasks will be run at every commit, if you wish to run them without performing a commit use the following command:

```
./vendor/bin/grumphp run
```

If you want to simulate the tasks that will be run when creating a new commit:

```
./vendor/bin/grumphp git:pre-commit
```

Check [GrumPHP documentation](https://github.com/phpro/grumphp/tree/master/doc) for more.

### Customization

[](#customization)

This component offers a variety of ready conventions that all projects need to follow. This list of default conventions can be found in [CONVENTIONS.md](CONVENTIONS.md).

Since GrumPHP uses the [Symfony Dependency Injection component](http://symfony.com/doc/current/components/dependency_injection.html)you can override specific parameters in your project's `grumphp.yml.dist` file as follows:

```
imports:
  - { resource: ./vendor/openeuropa/code-review-drupal/dist/drupal-conventions.yml }

parameters:
  tasks.git_commit_message.matchers: ['/^JIRA-\d+: [A-Z].+\./']
```

Below the list of task parameters can that be overridden on a per-project basis:

- `tasks.phpcs.standard`
- `tasks.phpcs.ignore_patterns`
- `tasks.phpcs.triggered_by`
- `tasks.phpcs.whitelist_patterns`
- `tasks.phpcs.warning_severity`
- `tasks.phpstan.autoload_file`
- `tasks.phpstan.configuration`
- `tasks.phpstan.level`
- `tasks.phpstan.force_patterns`
- `tasks.phpstan.triggered_by`
- `tasks.git_commit_message.matchers`

It is also possible to extend the list of tasks to be run by adding tasks under the `tasks:` tree as shown below:

```
imports:
  - { resource: ./vendor/openeuropa/code-review-drupal/dist/drupal-conventions.yml }

grumphp:
  tasks:
    phpparser: ~
```

GrumPHP already has a series of tasks that can be used out of the box, you can find the complete list in the [GrumPHP tasks page](https://github.com/phpro/grumphp/blob/v2.x/doc/tasks.md).

If you wih you can create your own tasks as explained in the [GrumPHP extensions page](https://github.com/phpro/grumphp/blob/v2.x/doc/extensions.md).

### Transition from code-review 2.x

[](#transition-from-code-review-2x)

If you wish to transition to code-review-drupal from code-review version 2.x, please replace the package via Composer:

```
composer remove --dev openeuropa/code-review
composer require --dev openeuropa/code-review-drupal
```

Besides replacement of the package, some adjustments are needed in `grumphp.yml` file.

This component removes ExtraTasks extension. Any aditional task previously declared in `extra_tasks` will need to be placed inside `tasks` under `grumphp` tree.

```
- extra_tasks:
-   phpparser:
-      ignore_patterns:
-       - vendor/
-
- grumphp:
-   extensions:
-     - OpenEuropa\CodeReview\ExtraTasksExtension

+ grumphp:
+   tasks:
+     phpparser:
+      ignore_patterns:
+        - vendor/
```

In addition, PHP Mess Detector is no longer available as part of the configured tasks. The task and related parameters have been removed. If you wish to continue using PHP Mess Detector, you can add it as part of GrumPHP as previously described.

All other conventions and parameters remain the same.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance58

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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

529d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d3b1f4079f9a82f6dd88fe6577d1256b4ecbbccbcd4a4ec9bea7c2fd6f72b99a?d=identicon)[DIGIT-CORE](/maintainers/DIGIT-CORE)

---

Top Contributors

[![AaronGilMartinez](https://avatars.githubusercontent.com/u/7264392?v=4)](https://github.com/AaronGilMartinez "AaronGilMartinez (7 commits)")[![drishu](https://avatars.githubusercontent.com/u/11507647?v=4)](https://github.com/drishu "drishu (7 commits)")[![brummbar](https://avatars.githubusercontent.com/u/8488617?v=4)](https://github.com/brummbar "brummbar (2 commits)")

### Embed Badge

![Health badge](/badges/openeuropa-code-review-drupal/health.svg)

```
[![Health](https://phpackages.com/badges/openeuropa-code-review-drupal/health.svg)](https://phpackages.com/packages/openeuropa-code-review-drupal)
```

###  Alternatives

[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2021.0M277](/packages/drupal-core-dev)[wp-cli/wp-cli-tests

WP-CLI testing framework

422.7M87](/packages/wp-cli-wp-cli-tests)[chromatic/usher

A collection of Robo commands for use on Chromatic projects.

13534.3k1](/packages/chromatic-usher)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

38244.6k16](/packages/ec-europa-toolkit)[axelerant/drupal-quality-checker

Code quality checking tools for Drupal project.

13197.9k1](/packages/axelerant-drupal-quality-checker)

PHPackages © 2026

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