PHPackages                             rodrigorm/phpqa-patch - 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. [CLI &amp; Console](/categories/cli)
4. /
5. rodrigorm/phpqa-patch

ActiveLibrary[CLI &amp; Console](/categories/cli)

rodrigorm/phpqa-patch
=====================

\*\*phpqa\*\* is a command-line tool for PHPMD, PHPCS and PHPCPD.

1339PHP

Since Dec 30Pushed 9y ago1 watchersCompare

[ Source](https://github.com/rodrigorm/phpqa-patch)[ Packagist](https://packagist.org/packages/rodrigorm/phpqa-patch)[ RSS](/packages/rodrigorm-phpqa-patch/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

phpqa
=====

[](#phpqa)

[![Build Status](https://camo.githubusercontent.com/29c93d158ebc95229a58053ec856f35bd1626ea1533b214de955867066be87d9/68747470733a2f2f7472617669732d63692e6f72672f726f647269676f726d2f70687071612d70617463682e737667)](https://travis-ci.org/rodrigorm/phpqa-patch)

**phpqa** is a command-line tool for PHPMD, PHPCS and PHPCPD.

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

[](#installation)

### Composer

[](#composer)

```
composer require 'rodrigorm/phpqa-patch=*'

```

For a system-wide installation via Composer, you can run:

```
composer global require 'rodrigorm/phpqa-patch=*'

```

Make sure you have `~/.composer/vendor/bin/` in your path.

Usage
-----

[](#usage)

### Patch PHPMD

[](#patch-phpmd)

```
$ git diff HEAD^1 > /tmp/patch.txt

$ phpmd /path/to/project/Example.php xml phpmd.xml --reportfile /tmp/pmd.xml

$ phpqa patch-pmd --patch /tmp/patch.txt         \
                  --path-prefix /path/to/project \
                  /tmp/pmd.xml
phpqa dev-master by Rodrigo Moyle.

1 violations found:

Example.php:11     Lorem ipsum dolor sit amet.

```

Patch PHPCPD
------------

[](#patch-phpcpd)

```
$ git diff HEAD^1 > /tmp/patch.txt

$ phpcpd --log-pmd /tmp/pmd-cpd.xml /path/to/project/

$ phpqa patch-cpd --patch /tmp/patch.txt         \
                  --path-prefix /path/to/project \
                  /tmp/pmd-cpd.xml
phpqa dev-master by Rodrigo Moyle.

1 clones found:

  -     /tmp/Example.php:11-11
  -     /tmp/Example1.php:26-26

```

Patch PHPCS
-----------

[](#patch-phpcs)

```
$ git diff HEAD^1 > /tmp/patch.txt

$ phpcs --report=checkstyle -report-file="/tmp/checkstyle.xml" --standard="phpcs.xml" /path/to/project/

$ phpqa patch-cs --patch /tmp/patch.txt         \
                 --path-prefix /path/to/project \
                 /tmp/checkstyle.xml
phpqa dev-master by Rodrigo Moyle.

1 errors found:

Example.php:11 - ERROR: Lorem ipsum dolor sit amet.

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2dd87e26645ce24c280d8a3bc36c3b8c21c368d7540eac0ca581d3c3b586c95a?d=identicon)[rodrigorm](/maintainers/rodrigorm)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/rodrigorm-phpqa-patch/health.svg)

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.1k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)[codedungeon/php-cli-colors

Liven up you PHP Console Apps with standard colors

10210.1M26](/packages/codedungeon-php-cli-colors)

PHPackages © 2026

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