PHPackages                             hotwebmatter/drupal-quality-checker - 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. hotwebmatter/drupal-quality-checker

ActiveComposer-plugin[Testing &amp; Quality](/categories/testing)

hotwebmatter/drupal-quality-checker
===================================

Code quality checking tools for Drupal project.

2.0.0-alpha1(1y ago)01proprietaryPHP

Since Sep 30Pushed 1y agoCompare

[ Source](https://github.com/hotwebmatter/drupal-quality-checker)[ Packagist](https://packagist.org/packages/hotwebmatter/drupal-quality-checker)[ Docs](https://github.com/axelerant/drupal-quality-checker)[ RSS](/packages/hotwebmatter-drupal-quality-checker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (10)Versions (4)Used By (0)

Package for Drupal Code Quality presets
=======================================

[](#package-for-drupal-code-quality-presets)

This has been customised from [vijaycs85/drupal-quality-checker](https://packagist.org/packages/vijaycs85/drupal-quality-checker) based on the Axelerant fork [axelerant/drupal-quality-checker](https://packagist.org/packages/axelerant/drupal-quality-checker). Apart from a different template file, it uses the `AxelerantDQCPlugin` to copy default configuration files as described below.

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

[](#installation)

*Upgrading from Beta 8?* Read [the instructions for changes](#upgrading-from-beta-8) you need to make to grumphp.yml.dist.

```
composer require --dev hotwebmatter/drupal-quality-checker
```

This will add the plugin to your project and copy the default configuration files. These files are:

- `grumphp.yml.dist`
- `phpcs.xml.dist`
- `phpmd.xml.dist`
- `phpstan.neon.dist`

Since these are `.dist` files, the plugin will overwrite them on every `composer install`. If you mean to customize the default settings, then we recommend that you rename them to remove the `.dist` suffix. As such, it is a good idea to add these `.dist` files to your `.gitignore` file.

Usage
-----

[](#usage)

No additional steps required, but if git hooks aren't fired, run `php ./vendor/bin/grumphp git:init`. For additional commands, look at [grumhp's documentation](https://github.com/phpro/grumphp/blob/master/doc/commands.md).

Customising
-----------

[](#customising)

Almost all customising begins with first copying the `grumphp.yml.dist` file to your project. Make sure you have the file.

### Adding tasks

[](#adding-tasks)

There are various tasks you can add and customise in your grumphp.yml. Read the [online documentation for GrumPHP tasks](https://github.com/phpro/grumphp/blob/master/doc/tasks.md) to see the tasks you can use and configure.

### Forcing commit message format

[](#forcing-commit-message-format)

To configure commit message structure, use the [git\_commit\_message task](https://github.com/phpro/grumphp/blob/master/doc/tasks/git_commit_message.md). For example, to enforce the commit message contains the Jira issue ID, use the rule as the following snippet. More options are [documented online](https://github.com/phpro/grumphp/blob/master/doc/tasks/git_commit_message.md).

```
# grumphp.yml
grumphp:
  tasks:
    git_commit_message:
      matchers:
        Must contain issue number: /JIRA-\d+/
```

### Disable commit banners

[](#disable-commit-banners)

GrumPHP supports banners to celebrate (or scold) on your commit. This is fun but it is possible it gets on your nerves. If you don’t want it, edit the grumphp.yml file and replace the following parameters:

```
# grumphp.yml
grumphp:
    ascii: ~
```

You could even disable specific ones like this:

```
# grumphp.yml
grumphp:
    ascii:
        succeeded: ~
```

### Overwrite phpmd ruleset

[](#overwrite-phpmd-ruleset)

Copy the ruleset to the project root first

```
cp vendor/hotwebmatter/drupal-quality-checker/phpmd.xml.dist phpmd.xml
```

Edit it as per your needs and commit. Remember to modify the grumphp.yml file with the new path.

```
# grumphp.yml
grumphp:
  tasks:
    phpmd:
      ruleset: ['phpmd.xml']
```

### Customise phpcs rules

[](#customise-phpcs-rules)

Copy the ruleset to the project root first

```
cp vendor/hotwebmatter/drupal-quality-checker/phpcs.xml.dist phpcs.xml
```

Edit it as per your needs and commit. Remember to modify the grumphp.yml file with the new path.

```
# grumphp.yml
grumphp:
  tasks:
    phpcs:
      standard: ['phpcs.xml']
```

### Customise phpstan rules

[](#customise-phpstan-rules)

Copy the ruleset to the project root first

```
cp vendor/hotwebmatter/drupal-quality-checker/phpstan.neon.dist phpstan.neon
```

Edit it as per your needs and commit. Remember to modify the grumphp.yml file with the new path.

```
# grumphp.yml
grumphp:
  tasks:
    phpstan:
      configuration: phpstan.neon
```

More about scaffolding
----------------------

[](#more-about-scaffolding)

As described before, this package uses [`drupal/core-composer-scaffold`](https://github.com/drupal/core-composer-scaffold) plugin to scaffold a few files to the project root. This is not required but there is a good chance you are already using it if you're building a Drupal site.

The scaffolding operation runs with every composer operation and overwrites files. Only the file `grumphp.yml.dist` is not overwritten during subsequent operations. If you are customising any of the other configuration files and don't want the updates to overwrite your changes, you can override the behaviour in your composer.json file. For example, to skip `phpmd.xml.dist` from being overwritten, add this to your `composer.json`:

```
  "name": "my/project",
  ...
  "extra": {
    "drupal-scaffold": {
      "file-mapping": {
        "[project-root]/phpmd.xml.dist": false
      }
    }
  }
```

For more details, read the ["Excluding Scaffold files"](https://github.com/drupal/core-composer-scaffold#excluding-scaffold-files) section of the [documentation](https://github.com/drupal/core-composer-scaffold/blob/8.8.x/README.md) for the core-composer-scaffold plugin.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor1

Top contributor holds 74.1% 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

Unknown

Total

1

Last Release

584d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b42b28242372ecf8c42d5e06b9450889dc4148c4d603723987bbe3b010052ec?d=identicon)[hotwebmatter](/maintainers/hotwebmatter)

---

Top Contributors

[![vijaycs85](https://avatars.githubusercontent.com/u/1220029?v=4)](https://github.com/vijaycs85 "vijaycs85 (43 commits)")[![truls1502](https://avatars.githubusercontent.com/u/913581?v=4)](https://github.com/truls1502 "truls1502 (6 commits)")[![alexpott](https://avatars.githubusercontent.com/u/769634?v=4)](https://github.com/alexpott "alexpott (2 commits)")[![hussainweb](https://avatars.githubusercontent.com/u/1040271?v=4)](https://github.com/hussainweb "hussainweb (2 commits)")[![hotwebmatter](https://avatars.githubusercontent.com/u/1103978?v=4)](https://github.com/hotwebmatter "hotwebmatter (2 commits)")[![Judapriest](https://avatars.githubusercontent.com/u/4941691?v=4)](https://github.com/Judapriest "Judapriest (1 commits)")[![gugerard](https://avatars.githubusercontent.com/u/1931900?v=4)](https://github.com/gugerard "gugerard (1 commits)")[![dawehner](https://avatars.githubusercontent.com/u/29678?v=4)](https://github.com/dawehner "dawehner (1 commits)")

### Embed Badge

![Health badge](/badges/hotwebmatter-drupal-quality-checker/health.svg)

```
[![Health](https://phpackages.com/badges/hotwebmatter-drupal-quality-checker/health.svg)](https://phpackages.com/packages/hotwebmatter-drupal-quality-checker)
```

###  Alternatives

[axelerant/drupal-quality-checker

Code quality checking tools for Drupal project.

13197.9k1](/packages/axelerant-drupal-quality-checker)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13176.9k8](/packages/youwe-testing-suite)[wp-cli/wp-cli-tests

WP-CLI testing framework

422.7M87](/packages/wp-cli-wp-cli-tests)[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)[drupal/core-dev

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

2021.0M275](/packages/drupal-core-dev)[vijaycs85/drupal-quality-checker

Setups code quality checking tools for Drupal project.

52192.3k4](/packages/vijaycs85-drupal-quality-checker)

PHPackages © 2026

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