PHPackages                             vijaycs85/drupal-phpqa - 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. vijaycs85/drupal-phpqa

ActiveDrupal-tool[Testing &amp; Quality](/categories/testing)

vijaycs85/drupal-phpqa
======================

PHPQA implementation for Drupal project.

8.8.2(6y ago)8491GPL-2.0-or-later

Since Jul 20Pushed 4y agoCompare

[ Source](https://github.com/vijaycs85/drupal-phpqa)[ Packagist](https://packagist.org/packages/vijaycs85/drupal-phpqa)[ RSS](/packages/vijaycs85-drupal-phpqa/feed)WikiDiscussions 8.8.x Synced 3w ago

READMEChangelogDependencies (6)Versions (4)Used By (0)

Drupal PHPQA
============

[](#drupal-phpqa)

[PHPQA](https://github.com/EdgedesignCZ/phpqa) with [Drupal](https://www.drupal.org) specific configurations.

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

[](#installation)

Create as a composer project on drupal root directory.

```
cd path/to/drupal
composer create-project vijaycs85/drupal-phpqa --stability dev -vvv phpqa

```

Usage
-----

[](#usage)

```
cd path/to/drupal
cd phpqa
bin/phpqa

```

By default it runs below checks (on core node module):

ToolDescription[phpmetrics](https://github.com/Halleck45/PhpMetrics)Static analysis tool for PHP[phpcs](https://github.com/squizlabs/PHP_CodeSniffer)Detect violations of a coding standard[phpmd](https://github.com/phpmd/phpmd)Scan PHP project for messy code[phpcpd](https://github.com/sebastianbergmann/phpcpd)Copy/Paste Detector (CPD) for PHP code[phploc](https://github.com/sebastianbergmann/phploc)Measure the size of a PHP project[pdepend](https://github.com/pdepend/pdepend)PHP adaptation of JDepend[parallel-lint](https://github.com/JakubOnderka/PHP-Parallel-Lint)Check syntax of PHP files[security-checker](https://github.com/sensiolabs/security-checker)Check composer.lock for known security issuesCLI result would be:

[![Drupal-PHPQA-CLI-Result](./docs/Drupal-PHPQA-Cli.png)](./docs/Drupal-PHPQA-Cli.png)

Visiting `http://[drupalsite.url]/phpqa/report/phpqa.html` would look like this:

[![Drupal-PHPQA-UI-Result](./docs/Drupal-PHPQA-UI.png)](./docs/Drupal-PHPQA-UI.png)

**NOTE**

- [phpunit](https://github.com/phpunit/phpunit) has version conflict with Drupal core phpunit version
- [phpstan](https://github.com/phpstan/phpstan) has conflicts.

Configuration
-------------

[](#configuration)

All configurations in `phpqa/.phpqa.yml` can be overridden by passing cli parameters. For example, `bin/phpqa --analyzedDirs ../core/modules/book` would run all checks on book module. Check PHPQA [README](https://github.com/EdgedesignCZ/phpqa#phpqa) for full list.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

1756d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1220029?v=4)[Vijaya Chandran Mani](/maintainers/vijaycs85)[@vijaycs85](https://github.com/vijaycs85)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/vijaycs85-drupal-phpqa/health.svg)

```
[![Health](https://phpackages.com/badges/vijaycs85-drupal-phpqa/health.svg)](https://phpackages.com/packages/vijaycs85-drupal-phpqa)
```

###  Alternatives

[slevomat/coding-standard

Slevomat Coding Standard for PHP\_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.

1.5k130.4M2.1k](/packages/slevomat-coding-standard)[drupal/core-dev

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

2022.0M321](/packages/drupal-core-dev)[acquia/coding-standards

PHP\_CodeSniffer rules (sniffs) for Acquia coding standards

204.9M33](/packages/acquia-coding-standards)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13186.2k8](/packages/youwe-testing-suite)

PHPackages © 2026

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