PHPackages                             whotrades/phpmd-diff - 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. whotrades/phpmd-diff

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

whotrades/phpmd-diff
====================

Tool for creating PHPMD reports, cleared of violations unrelated to the modified lines

1.0.2(4y ago)02MITPHP

Since Oct 20Pushed 4y ago3 watchersCompare

[ Source](https://github.com/WhoTrades/phpmd-diff)[ Packagist](https://packagist.org/packages/whotrades/phpmd-diff)[ RSS](/packages/whotrades-phpmd-diff/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (5)Used By (0)

phpmd-diff
==========

[](#phpmd-diff)

**phpmd-diff** is a tool for creating PHPMD reports, cleared of violations unrelated to the modified lines.

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

[](#installation)

```
composer require-dev whotrades/phpmd-diff
```

Usage
-----

[](#usage)

```
$ git diff HEAD^1 > /path/to/patch.txt
$ /path/to/phpmd /path/to/sources xml /path/to/rulesets.xml --reportfile report.xml
$ /path/to/phpmd-diff --path-prefix=/custom/path/prefix --filter=xml /path/to/phpmd/report.xml /path/to/patch.txt 1> /path/to/a/cleaned/report.xml
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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

Total

3

Last Release

1505d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9bb0d3a488eeb7af026f1b614186e7643a92fba1dc0f103fb29acde1151e4522?d=identicon)[whotrades](/maintainers/whotrades)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/whotrades-phpmd-diff/health.svg)

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

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k910.7M134.8k](/packages/phpunit-phpunit)[sebastian/comparator

Provides the functionality to compare PHP values for equality

7.0k879.8M145](/packages/sebastian-comparator)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[codeception/codeception

All-in-one PHP Testing Framework

4.9k86.2M2.9k](/packages/codeception-codeception)[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k26.2M1.8k](/packages/infection-infection)[phpunit/phpcov

CLI frontend for php-code-coverage

23621.1M583](/packages/phpunit-phpcov)

PHPackages © 2026

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