PHPackages                             michael4d45/coverage-treemap - 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. michael4d45/coverage-treemap

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

michael4d45/coverage-treemap
============================

PHPUnit extension that generates an interactive squarified treemap visualization of code coverage

v1.0.0(5mo ago)0761↓82.8%1MITJavaScriptPHP ^8.3

Since Jan 9Pushed 5mo agoCompare

[ Source](https://github.com/Michael4d45/PHPUnit-Coverage-Treemap)[ Packagist](https://packagist.org/packages/michael4d45/coverage-treemap)[ RSS](/packages/michael4d45-coverage-treemap/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (1)

Coverage Treemap PHPUnit Extension
==================================

[](#coverage-treemap-phpunit-extension)

A PHPUnit extension that generates an interactive squarified treemap visualization of code coverage.

[![Coverage Treemap Example](example.png)](example.png)

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

[](#installation)

```
composer require --dev michael4d45/coverage-treemap
```

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

[](#configuration)

Add the extension to your `phpunit.xml`:

```

```

### Configuration Parameters

[](#configuration-parameters)

- **`outputDirectory`** (optional): Directory where the treemap HTML report will be generated. Defaults to `reports/coverage-treemap`.
- **`defaultNamespace`** (optional): Default namespace prefix to use when organizing the treemap. Defaults to `App`.

The extension automatically reads source directories from your `` configuration and excluded directories from ``.

Usage
-----

[](#usage)

Run PHPUnit with coverage:

```
phpunit --coverage
# or
vendor/bin/phpunit --coverage
```

After tests complete, open `reports/coverage-treemap/index.html` in your browser.

Requirements
------------

[](#requirements)

- PHP 8.3+
- PHPUnit 11+
- Code coverage driver (PCOV, Xdebug, etc.)

License
-------

[](#license)

This project is open-sourced software licensed under the [MIT License](LICENSE).

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance70

Regular maintenance activity

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

175d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2423882?v=4)[Michael Harvey](/maintainers/Michael4d45)[@Michael4d45](https://github.com/Michael4d45)

---

Top Contributors

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

---

Tags

phpunitcoveragecode coveragetreemapvisualization

### Embed Badge

![Health badge](/badges/michael4d45-coverage-treemap/health.svg)

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

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k136.1M986](/packages/brianium-paratest)[robiningelbrecht/phpunit-coverage-tools

PHPUnit coverage tools

17143.1k51](/packages/robiningelbrecht-phpunit-coverage-tools)[ockcyp/covers-validator

Validates @covers tags in PHPUnit tests

22208.4k108](/packages/ockcyp-covers-validator)

PHPackages © 2026

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