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

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

teqnomaze/code-coverage
=======================

Check for the code coverage using the clover report of phpunit.

v1.1.0(9mo ago)01.1kMITPHPPHP &gt;=8.2CI passing

Since Apr 27Pushed 9mo ago1 watchersCompare

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

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

Coverage Checker
================

[](#coverage-checker)

A composer package for checking code coverage score in percentage using the clover.xml report of phpunit.

[![Code Analysis](https://github.com/teqnomaze/code-coverage/actions/workflows/analyse.yml/badge.svg)](https://github.com/teqnomaze/code-coverage/actions/workflows/analyse.yml)

### Installation

[](#installation)

This can be installed using [Composer](https://getcomposer.org).

```
composer require teqnomaze/code-coverage --dev

```

### Usage

[](#usage)

Run the coverage check script which accepts 2 parameters to return coverage result.

1. The location of `clover.xml` file, that's generated by phpunit.
2. The coverage threshold percentage that's acceptable (Min = 1, Max = 100). Default is 80

```
vendor/bin/code-coverage ./build/clover.xml 90

```

Changelog
---------

[](#changelog)

#### 1.1.0

[](#110)

- Added getters and setters
- Added color styling for the output

#### 1.0.0

[](#100)

- Created initial version.

License
-------

[](#license)

This project is licensed under the MIT License. See [LICENSE](LICENSE.md) for more information.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance58

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

2

Last Release

279d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.3

v1.1.0PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4385285?v=4)[Musthafa SM](/maintainers/musthafasm)[@musthafasm](https://github.com/musthafasm)

---

Top Contributors

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

---

Tags

phpunitcoverageclover

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[nette/tester

Nette Tester: enjoyable unit testing in PHP with code coverage reporter. 🍏🍏🍎🍏

4917.3M1.5k](/packages/nette-tester)[dvdoug/behat-code-coverage

Generate Code Coverage reports for Behat tests

593.6M37](/packages/dvdoug-behat-code-coverage)[nimut/phpunit-merger

Merge multiple PHPUnit reports into one file

501.7M7](/packages/nimut-phpunit-merger)[leanphp/behat-code-coverage

Generate Code Coverage reports for Behat tests

50359.8k2](/packages/leanphp-behat-code-coverage)[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)

PHPackages © 2026

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