PHPackages                             mridang/phpunit-reporters - 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. mridang/phpunit-reporters

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

mridang/phpunit-reporters
=========================

A PHPUnit reporter that displays code coverage in the console.

1.0.2(4mo ago)0793[3 PRs](https://github.com/mridang/phpunit-reporters/pulls)1Apache-2.0PHPPHP ^8.3CI passing

Since Dec 26Pushed 3mo agoCompare

[ Source](https://github.com/mridang/phpunit-reporters)[ Packagist](https://packagist.org/packages/mridang/phpunit-reporters)[ Docs](https://github.com/mridang/phpunit-reporters)[ RSS](/packages/mridang-phpunit-reporters/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (7)Versions (9)Used By (1)

phpunit-reporters
=================

[](#phpunit-reporters)

**phpunit-reporters** is a PHPUnit extension that displays code coverage results in Jest/Istanbul's console format with a directory tree structure.

##### Why?

[](#why)

Using phpunit-reporters lets you see coverage in Jest's familiar table format right in your terminal. The reporter organizes files into a directory tree, shows uncovered line ranges (e.g., `5-12,18`), and applies the same color coding as Jest so your PHP coverage reports look exactly like your JavaScript ones.

Usage
-----

[](#usage)

Add the package to your project:

```
composer require --dev mridang/phpunit-reporters
```

Then run your tests with coverage:

```
vendor/bin/phpunit --coverage-clover build/coverage/clover.xml
```

The Jest-style coverage table will automatically appear at the end of your test run.

#### Options

[](#options)

The plugin automatically detects terminal width and formats output accordingly. Coverage data is read from PHPUnit's clover.xml report, so use standard PHPUnit coverage options:

```
vendor/bin/phpunit --coverage-clover build/coverage/clover.xml
```

Ensure Xdebug or PCOV is installed and configured for coverage collection.

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

[](#contributing)

Contributions are welcome! If you find a bug or have suggestions for improvement, please open an issue or submit a pull request.

License
-------

[](#license)

Apache License 2.0 © 2025 Mridang Agarwalla

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance78

Regular maintenance activity

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~1 days

Total

3

Last Release

141d ago

PHP version history (2 changes)1.0.0PHP ^8.2

1.0.1PHP ^8.3

### Community

Maintainers

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

---

Top Contributors

[![mridang](https://avatars.githubusercontent.com/u/327432?v=4)](https://github.com/mridang "mridang (6 commits)")[![semantic-release-bot](https://avatars.githubusercontent.com/u/32174276?v=4)](https://github.com/semantic-release-bot "semantic-release-bot (3 commits)")

---

Tags

phpunitcoveragereporterjestistanbul

###  Code Quality

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mridang-phpunit-reporters/health.svg)

```
[![Health](https://phpackages.com/badges/mridang-phpunit-reporters/health.svg)](https://phpackages.com/packages/mridang-phpunit-reporters)
```

###  Alternatives

[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)[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1468.1M72](/packages/ergebnis-phpunit-slow-test-detector)[nimut/phpunit-merger

Merge multiple PHPUnit reports into one file

501.7M7](/packages/nimut-phpunit-merger)[facile-it/paraunit

paraunit

146721.6k11](/packages/facile-it-paraunit)[lmc/steward

Steward - makes Selenium WebDriver + PHPUnit testing easy and robust

222163.1k1](/packages/lmc-steward)

PHPackages © 2026

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