PHPackages                             splotches/php-composter-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. splotches/php-composter-phpmd

ActivePhp-composter-action[Testing &amp; Quality](/categories/testing)

splotches/php-composter-phpmd
=============================

Automatically install a git pre-commit hook to check your PHP files upon each commit to make sure they follow the rules defined in phpmd.xml.

0.1.1(7y ago)026GPL-3.0-onlyPHP

Since Sep 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/pascal-splotches/php-composter-phpmd)[ Packagist](https://packagist.org/packages/splotches/php-composter-phpmd)[ RSS](/packages/splotches-php-composter-phpmd/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

PHP Composter PHPMD
===================

[](#php-composter-phpmd)

[![standard-readme compliant](https://camo.githubusercontent.com/85a8df07cdb7b52c6d19aa103678fed76e6ba8467339b03824405d23c71bf2d7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374616e646172642d2d726561646d652d4f4b2d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/85a8df07cdb7b52c6d19aa103678fed76e6ba8467339b03824405d23c71bf2d7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374616e646172642d2d726561646d652d4f4b2d677265656e2e7376673f7374796c653d666c61742d737175617265)

Automatically install a git pre-commit hook to check your PHP files upon each commit to make sure they follow the rules defined in `phpmd.xml`.

Table Of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Built With](#built-with)
- [Contributing](#contributing)
- [Versioning](#versioning)
- [Authors](#authors)
- [License](#license)

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

[](#installation)

Add as a development requirement to your `composer.json`:

```
composer require --dev pascal-splotches/php-composter-phpmd
```

Usage
-----

[](#usage)

It automatically works whenever you execute a `git commit`.

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

[](#configuration)

You need to add a configuration section to your `phpmd.xml` ruleset with the correct flags and paths:

```

        src

        docs

        php

```

Built With
----------

[](#built-with)

- [Composter](https://github.com/php-composter/php-composter)
- [PHP Mess Detector](https://phpmd.org/)

Contributing
------------

[](#contributing)

All feedback, bug reports and pull requests are welcomed.

Versioning
----------

[](#versioning)

We use [SemVer](https://semver.org/) for versioning. For the versions available, see the [releases on this repository](https://github.com/pascal-splotches/php-composter-phpmd/releases).

Authors
-------

[](#authors)

- Pascal Scheepers

License
-------

[](#license)

This project is licensed under the GPL v3 License - see the [LICENSE](./LICENSE) file for details.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

2

Last Release

2784d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13313021?v=4)[Pascal Scheepers](/maintainers/pascal-splotches)[@pascal-splotches](https://github.com/pascal-splotches)

---

Top Contributors

[![pascal-splotches](https://avatars.githubusercontent.com/u/13313021?v=4)](https://github.com/pascal-splotches "pascal-splotches (4 commits)")

---

Tags

composergithookphpmd

### Embed Badge

![Health badge](/badges/splotches-php-composter-phpmd/health.svg)

```
[![Health](https://phpackages.com/badges/splotches-php-composter-phpmd/health.svg)](https://phpackages.com/packages/splotches-php-composter-phpmd)
```

###  Alternatives

[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[liuggio/fastest

Simple parallel testing execution... with some goodies for functional tests.

4825.6M26](/packages/liuggio-fastest)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)[orchestra/workbench

Workbench Companion for Laravel Packages Development

8017.0M43](/packages/orchestra-workbench)[drupal/drupal-driver

A collection of reusable Drupal drivers

6715.8M18](/packages/drupal-drupal-driver)[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)

PHPackages © 2026

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