PHPackages                             johnatas-x/grumphp-drupal-check - 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. johnatas-x/grumphp-drupal-check

ActiveLibrary[Testing &amp; Quality](/categories/testing)

johnatas-x/grumphp-drupal-check
===============================

Execute drupal check in a grumphp task.

2.19.0(3mo ago)110.8k↓35.9%1[1 issues](https://github.com/johnatas-x/grumphp-drupal-check/issues)2proprietaryPHP

Since Feb 18Pushed 3mo agoCompare

[ Source](https://github.com/johnatas-x/grumphp-drupal-check)[ Packagist](https://packagist.org/packages/johnatas-x/grumphp-drupal-check)[ Docs](https://github.com/johnatas-x/grumphp-drupal-check)[ RSS](/packages/johnatas-x-grumphp-drupal-check/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (27)Used By (2)

> ⚠️ **The version 2 of this project is made for GrumPHP 2.0. Check release 1.1.0 for GrumPHP 1.15** ⚠️

Description
===========

[](#description)

This repository adds a task for GrumPHP that launchs [drupal-check](https://github.com/mglaman/drupal-check). During a commit check Drupal code for deprecations and discover bugs via static analysis. If a deprecated code is detected, it won't pass.

Installation
============

[](#installation)

Install it using composer:

`composer require --dev johnatas-x/grumphp-drupal-check`

Usage
=====

[](#usage)

1. Add the extension in your grumphp.yml file:

```
extensions:
  - GrumphpDrupalCheck\ExtensionLoader
```

2. Add drupal check to the tasks:

```
tasks:
  drupal_check:
    drupal_root: ~
    memory_limit: ~
    deprecations: true
    analysis: true
    style: true
    php8: true
    exclude_dir: []

```

Optionally, you can define multiple DrupalCheck arguments:

- **drupal\_root** (string): Configure the path to the Drupal root. This fallback option can be used if drupal-check could not identify Drupal root from the provided path(s). This is useful when testing a module as opposed to a Drupal installation.
- **memory\_limit** (string): Configure memory limit for the process.
- **deprecations** (boolean): Check code for deprecations. By default it is true.
- **analysis** (boolean): Check code analysis.
- **style** (boolean): Check code style
- **php8** (boolean): Set PHPStan phpVersion for 8.1 (Drupal 10 requirement).
- **exclude\_dir** (array): Exclude directories. Wildcards work.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance60

Regular maintenance activity

Popularity27

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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

Recently: every ~39 days

Total

25

Last Release

105d ago

Major Versions

1.1.0 → 2.0.0-beta12023-08-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb82429ffeb7556ffee9014525e0ba5d3a32cf3a525d6a5e48135ccd50626925?d=identicon)[johnatas-x](/maintainers/johnatas-x)

---

Top Contributors

[![johnatas-x](https://avatars.githubusercontent.com/u/34005481?v=4)](https://github.com/johnatas-x "johnatas-x (34 commits)")[![omarlopesino](https://avatars.githubusercontent.com/u/3202817?v=4)](https://github.com/omarlopesino "omarlopesino (21 commits)")[![juanjol](https://avatars.githubusercontent.com/u/4212917?v=4)](https://github.com/juanjol "juanjol (10 commits)")[![MPParsley](https://avatars.githubusercontent.com/u/1823998?v=4)](https://github.com/MPParsley "MPParsley (9 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (9 commits)")[![Esrohym](https://avatars.githubusercontent.com/u/35486575?v=4)](https://github.com/Esrohym "Esrohym (7 commits)")[![lpeidro](https://avatars.githubusercontent.com/u/63868167?v=4)](https://github.com/lpeidro "lpeidro (1 commits)")[![piggito](https://avatars.githubusercontent.com/u/1173779?v=4)](https://github.com/piggito "piggito (1 commits)")[![leopathu](https://avatars.githubusercontent.com/u/6512795?v=4)](https://github.com/leopathu "leopathu (1 commits)")

### Embed Badge

![Health badge](/badges/johnatas-x-grumphp-drupal-check/health.svg)

```
[![Health](https://phpackages.com/badges/johnatas-x-grumphp-drupal-check/health.svg)](https://phpackages.com/packages/johnatas-x-grumphp-drupal-check)
```

###  Alternatives

[acquia/orca

A tool for testing a company's software packages together in the context of a realistic, functioning, best practices Drupal build

32902.4k](/packages/acquia-orca)[vijaycs85/drupal-quality-checker

Setups code quality checking tools for Drupal project.

52192.3k4](/packages/vijaycs85-drupal-quality-checker)[sci3ma/symfony-grumphp

Configured GrumPHP with bunch of tools for static code analysis Symfony Framework

196.7k](/packages/sci3ma-symfony-grumphp)

PHPackages © 2026

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