PHPackages                             llnl/blt-phpmd - 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. llnl/blt-phpmd

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

llnl/blt-phpmd
==============

Tests php mess detector rules against custom modules, themes, and profile files.

v1.0.3(2y ago)05.8k↑30%3[1 issues](https://github.com/LLNL/blt-phpmd/issues)[1 PRs](https://github.com/LLNL/blt-phpmd/pulls)GPL-2.0-or-laterPHP

Since Aug 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/LLNL/blt-phpmd)[ Packagist](https://packagist.org/packages/llnl/blt-phpmd)[ RSS](/packages/llnl-blt-phpmd/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Acquia BLT PHPMD testing integration
====================================

[](#acquia-blt-phpmd-testing-integration)

This is an [Acquia BLT](https://github.com/acquia/blt) plugin providing a process for testing code using [PHP Mess Detector](https://phpmd.org).

LLNL does not provide any direct support for this software or provide any warranty as to its stability.

Installation and usage
----------------------

[](#installation-and-usage)

To use this plugin, you must already have a Drupal project using BLT 13.

1. Add this plugin to your project using composer:

`composer require llnl/blt-phpmd`

2. Initialize the exclude settings for your project:

`blt recipes:config:init:phpmd`

3. Update your `blt.yml` file with the list of modules you wish to exclude from phpmd validation. It is valid to have no modules to exclude from testing.
4. Copy the `phpmd.xml.dist` file to `phpmd.xml` in the root directory of your project and configure rules according to [PHPMD](https://phpmd.org/documentation/)

There are two commands included `validate:phpmd:files` and `validate:phpmd:file`.

`validate:phpmd:files` will check all files in the `docroot/modules/custom`, `docroot/themes/custom`, and `docroot/profiles/custom` paths.

`validate:phpmd:file` expects a comma separated list of files to test. If given a directory, it will test all files in that path. This is useful for CI testing of files changed or in local testing while coding.

Release
=======

[](#release)

See [LICENSE](LICENSE) and [NOTICE](NOTICE).

SPDX-License-Identifier: GPL-2.0-or-later

LLNL-CODE-839162

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

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

Total

4

Last Release

933d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2090502?v=4)[Shelane French](/maintainers/shelane)[@shelane](https://github.com/shelane)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/llnl-blt-phpmd/health.svg)

```
[![Health](https://phpackages.com/badges/llnl-blt-phpmd/health.svg)](https://phpackages.com/packages/llnl-blt-phpmd)
```

###  Alternatives

[acquia/orca

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

30919.1k](/packages/acquia-orca)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13191.0k8](/packages/youwe-testing-suite)[axelerant/drupal-quality-checker

Code quality checking tools for Drupal project.

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

PHPackages © 2026

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