PHPackages                             babeuloula/phpunit-coverage-checker - 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. babeuloula/phpunit-coverage-checker

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

babeuloula/phpunit-coverage-checker
===================================

PhpUnit coverage checker, fail if coverage goes below a threshold

v1.0.1(4y ago)01.8kMITPHPPHP &gt;=7.1

Since Jul 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/babeuloula/phpunit-coverage-checker)[ Packagist](https://packagist.org/packages/babeuloula/phpunit-coverage-checker)[ RSS](/packages/babeuloula-phpunit-coverage-checker/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

PHPUnit coverage checker
========================

[](#phpunit-coverage-checker)

This script will read the XML coverage result and calculates the coverage score. Based on the given threshold the script will exit(0) if the coverage is higher than the threshold or exit(1) if the coverage is lower than the threshold.

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

[](#installation)

```
composer require --dev babeuloula/phpunit-coverage-checker
```

Usage
-----

[](#usage)

```
vendor/bin/coverage-checker
```

Example:

```
./vendor/bin/phpunit --coverage-xml ./coverage
vendor/bin/coverage-checker coverage/xml/index.xml 80
```

Thanks
------

[](#thanks)

Thanks to [richardregeer](https://github.com/richardregeer/phpunit-coverage-check) and [cylab.be](https://cylab.be/blog/114/fail-a-phpunit-test-if-coverage-goes-below-a-threshold).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

1763d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3761b383fa6ec2ff0c3afa00734e38f37f25562c6724224417f3d885e8cbae52?d=identicon)[BaBeuloula](/maintainers/BaBeuloula)

---

Top Contributors

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

---

Tags

checkercoveragephpunitthresholdphpunitcoveragecheckerthresholdBaBeuloula

### Embed Badge

![Health badge](/badges/babeuloula-phpunit-coverage-checker/health.svg)

```
[![Health](https://phpackages.com/badges/babeuloula-phpunit-coverage-checker/health.svg)](https://phpackages.com/packages/babeuloula-phpunit-coverage-checker)
```

###  Alternatives

[nimut/phpunit-merger

Merge multiple PHPUnit reports into one file

501.7M7](/packages/nimut-phpunit-merger)[ockcyp/covers-validator

Validates @covers tags in PHPUnit tests

21198.0k82](/packages/ockcyp-covers-validator)[vipsoft/code-coverage-extension

Behat code coverage collector

2186.5k2](/packages/vipsoft-code-coverage-extension)[df/php-coverfish

lightweight static code analysis tool for class coverage check of PHPUnit's CodeCoverage

234.9k1](/packages/df-php-coverfish)

PHPackages © 2026

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