PHPackages                             fivejars/drupal-quality-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. fivejars/drupal-quality-check

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

fivejars/drupal-quality-check
=============================

Setups code quality checking tools for FiveJars Drupal project.

v1.0.1(1y ago)02.7k↓50%GPL-2.0-or-laterPHP &gt;=8.2

Since Apr 16Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (16)Versions (3)Used By (0)

FiveJars Drupal quality check package
=====================================

[](#fivejars-drupal-quality-check-package)

Overview
--------

[](#overview)

Provides set of libraries to easily setup code quality checks based on [GrumPHP](https://github.com/phpro/grumphp) for Drupal project.

Install
-------

[](#install)

1. Add this package using composer `composer require --dev fivejars/drupal-quality-check`
2. Copy configuration files(`grumphp.yml.dist`, `phpmd.xml.dist`, `phpstan.neon.dist`) in project's root directory (not Drupal root directory) without `.dist` suffix(`grumphp.yml`, `phpmd.xml`, `phpstan.neon`).
3. Overview and change configuration according to your project requirements.
4. Copy the scripts section from `composer.scripts.json` to your project `composer.json` or merge it using `wikimedia/composer-merge-plugin`.

That's it. Now, GrumPHP tasks run on every `git commit`. Also you can to run other tasks using composer scripts.

> *Note:* As part of install, GrumPHP adds `pre-commit` hook to repository. Existing `pre-commit` might get [destroyed](https://github.com/phpro/grumphp/issues/416) when install/uninstall.

Composer Scripts
----------------

[](#composer-scripts)

1. `composer grumphp` - Run GrumPHP for the project files added to Git
2. `composer phpmetrics` - Generate PHP Metrics for project files from configured directories(see composer.scripts.json in the package root)
3. `composer phpstan` - Run PHPStan for the project files from configured directories(see phpstan.neon in your project root)
4. `composer phpcs YOUR_DIR` - Run PHPCS on the directory from command argument.
5. `composer phpcbf YOUR_DIR` - Run PHPCBF on the directory from command argument.
6. `composer phpmd` - Run PHPMD for the project files from configured directories(see phpmd.xml in your project root)
7. `composer phpmnd` - Run PHPMD for the project files from configured directories(see composer.scripts.json in the package root)
8. `composer twigcs YOUR_DIR` - Run TwigCS on the directory from command argument.

Features
--------

[](#features)

1. [PHPCS](https://github.com/squizlabs/PHP_CodeSniffer) with Drupal standard.
2. [PHP Lint](http://www.icosaedro.it/phplint/)
3. [YAML Lint](http://www.yamllint.com/)
4. [Composer](https://github.com/composer/composer)
5. [Composer Normalize](https://github.com/ergebnis/composer-normalize)
6. [JSONLint](https://jsonlint.com/)
7. [PHPStan](https://github.com/phpstan/phpstan)
8. [TwigCS](https://github.com/friendsoftwig/twigcs)
9. [PHPCompatibility](https://github.com/PHPCompatibility/PHPCompatibility)
10. [PHPMetrics](https://github.com/phpmetrics/PhpMetrics)

Long list checks/validators available [here](https://github.com/phpro/grumphp/blob/master/doc/tasks.md#tasks-1).

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance46

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

Total

2

Last Release

413d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/01a8740fa42c87e7db16626aebe88fa7a5b8d90140efc4e5f22fcd35cccd5dc7?d=identicon)[oleksandr.riumshyn](/maintainers/oleksandr.riumshyn)

![](https://www.gravatar.com/avatar/faaae86b867666363d1191e5c83c9e89a01cddab139b26fd9b843efe4bab07b6?d=identicon)[fivejars](/maintainers/fivejars)

---

Top Contributors

[![OleksandrRiumshyn](https://avatars.githubusercontent.com/u/152503916?v=4)](https://github.com/OleksandrRiumshyn "OleksandrRiumshyn (4 commits)")

### Embed Badge

![Health badge](/badges/fivejars-drupal-quality-check/health.svg)

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

###  Alternatives

[axelerant/drupal-quality-checker

Code quality checking tools for Drupal project.

13197.9k1](/packages/axelerant-drupal-quality-checker)[wp-cli/wp-cli-tests

WP-CLI testing framework

422.7M87](/packages/wp-cli-wp-cli-tests)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13176.9k8](/packages/youwe-testing-suite)[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.0M277](/packages/drupal-core-dev)

PHPackages © 2026

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