PHPackages                             handcraftedinthealps/code-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. handcraftedinthealps/code-coverage-checker

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

handcraftedinthealps/code-coverage-checker
==========================================

A code coverage checker for phpunit

0.2.9(2mo ago)672.3k—6.8%38MITPHPPHP ^7.2 || ^8.0

Since Nov 7Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/handcraftedinthealps/code-coverage-checker)[ Packagist](https://packagist.org/packages/handcraftedinthealps/code-coverage-checker)[ RSS](/packages/handcraftedinthealps-code-coverage-checker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (13)Used By (8)

Code Coverage Checker ⛰
=======================

[](#code-coverage-checker-)

[![GitHub license](https://camo.githubusercontent.com/bf9242bda1c5d9ecf8695e833100a48c895aaf6b57a8fa860e35b76e3f5201da/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f68616e6463726166746564696e746865616c70732f636f64652d636f7665726167652d636865636b65722e737667)](https://github.com/handcraftedinthealps/code-coverage-checker/blob/master/LICENSE)[![GitHub tag (latest SemVer)](https://camo.githubusercontent.com/5a104962546679e74e2d573669651f4bb19311f862dd12126ff085a4144bcc05/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f68616e6463726166746564696e746865616c70732f636f64652d636f7665726167652d636865636b65722e737667)](https://github.com/handcraftedinthealps/code-coverage-checker/releases)

A code coverage checker for phpunit.

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

[](#installation)

```
composer require handcraftedinthealps/code-coverage-checker --dev
```

Usage
-----

[](#usage)

### Generate coverage

[](#generate-coverage)

```
phpunit --coverage-php "Tests/reports/coverage.php"
```

### Check coverage

[](#check-coverage)

```
vendor/bin/code-coverage-checker "Tests/reports/coverage.php" "line" "96.0"
```

Instead of `line` you can use `class` or `method`. You can also check only specific directories:

```
vendor/bin/code-coverage-checker "Tests/reports/coverage.php" "line" "96.0" "Directory/A" "Directory/B"
```

### Example Output

[](#example-output)

[![!Exmaple code coverage checker output](docs/images/example.png)](docs/images/example.png)

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance85

Actively maintained with recent releases

Popularity37

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 72.2% 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 ~230 days

Recently: every ~423 days

Total

11

Last Release

76d ago

PHP version history (2 changes)0.1.0PHP ^7.2

0.2.3PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1698337?v=4)[Alexander Schranz](/maintainers/alexander-schranz)[@alexander-schranz](https://github.com/alexander-schranz)

---

Top Contributors

[![alexander-schranz](https://avatars.githubusercontent.com/u/1698337?v=4)](https://github.com/alexander-schranz "alexander-schranz (13 commits)")[![niklasnatter](https://avatars.githubusercontent.com/u/13310795?v=4)](https://github.com/niklasnatter "niklasnatter (3 commits)")[![luca-rath](https://avatars.githubusercontent.com/u/5758674?v=4)](https://github.com/luca-rath "luca-rath (1 commits)")[![mario-fehr](https://avatars.githubusercontent.com/u/14167832?v=4)](https://github.com/mario-fehr "mario-fehr (1 commits)")

---

Tags

code-coveragecode-coverage-checkerphpunit

### Embed Badge

![Health badge](/badges/handcraftedinthealps-code-coverage-checker/health.svg)

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

###  Alternatives

[vimeo/psalm

A static analysis tool for finding errors in PHP applications

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

A static analyzer for PHP

5.6k11.2M1.1k](/packages/phan-phan)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[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)[phpbench/phpbench

PHP Benchmarking Framework

2.0k13.0M627](/packages/phpbench-phpbench)

PHPackages © 2026

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