PHPackages                             guitarneck/php-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. guitarneck/php-coverage

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

guitarneck/php-coverage
=======================

php coverage reporting tool and framework

1.0.0(3y ago)132MITPHPPHP &gt;=5.6.0

Since Nov 28Pushed 3y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (2)Used By (0)

[![Version 1.0.0](https://camo.githubusercontent.com/34e695c6016bc2a934a96bed696e29b2f2ab562a7134d65a55d00653cd506bea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302e302d626c75652e737667)](./CHANGELOG.md) [![GitHub release (latest by date)](https://camo.githubusercontent.com/3c9772ef6355c5ab8caad6aaa7ff38a0dd70e316f086672485c62c113ed717a9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6775697461726e65636b2f7068702d636f766572616765)](https://camo.githubusercontent.com/3c9772ef6355c5ab8caad6aaa7ff38a0dd70e316f086672485c62c113ed717a9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6775697461726e65636b2f7068702d636f766572616765) [![GitHub last commit](https://camo.githubusercontent.com/0c6dabf13944fefe043a1b70c7443bb036b57f1ef67470ab16fee3d6cfce24c4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f6775697461726e65636b2f7068702d636f766572616765)](https://camo.githubusercontent.com/0c6dabf13944fefe043a1b70c7443bb036b57f1ef67470ab16fee3d6cfce24c4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f6775697461726e65636b2f7068702d636f766572616765)[![Packagist Version](https://camo.githubusercontent.com/ec992b2477adf5a3470a9ccf36910639dd4dcb2f9c74567f020a99aedbad2b60/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6775697461726e65636b2f7068702d636f766572616765)](https://camo.githubusercontent.com/ec992b2477adf5a3470a9ccf36910639dd4dcb2f9c74567f020a99aedbad2b60/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6775697461726e65636b2f7068702d636f766572616765) [![Packagist PHP Version Support](https://camo.githubusercontent.com/bd5fe431cf14c5d4ea1972324c30b00b4f74de78caf77bbe8a349157e13b6dd7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6775697461726e65636b2f7068702d636f7665726167652f312e302e30)](https://camo.githubusercontent.com/bd5fe431cf14c5d4ea1972324c30b00b4f74de78caf77bbe8a349157e13b6dd7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6775697461726e65636b2f7068702d636f7665726167652f312e302e30) [![Packagist Downloads](https://camo.githubusercontent.com/48be7294cea749673a1e28bbe5313f8e4d7d6e89290d965049b8fe5292f21bce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6775697461726e65636b2f7068702d636f766572616765)](https://camo.githubusercontent.com/48be7294cea749673a1e28bbe5313f8e4d7d6e89290d965049b8fe5292f21bce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6775697461726e65636b2f7068702d636f766572616765)[![GitHub license](https://camo.githubusercontent.com/886224df027ec053b7a17456f92dc806b94ba5b5d56af47fad9d31c5b906d1a2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6775697461726e65636b2f7068702d636f766572616765)](https://camo.githubusercontent.com/886224df027ec053b7a17456f92dc806b94ba5b5d56af47fad9d31c5b906d1a2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6775697461726e65636b2f7068702d636f766572616765) [![Keep a Changelog v1.0.0](https://camo.githubusercontent.com/c98016789246d5b2cda564e583ec8da7384f783ae8e560e8cf9716313c34b875/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6368616e67656c6f672d4b656570253230612532304368616e67656c6f6725323076312e302e302d253233303030303030)](./CHANGELOG.md)

---

PHP Coverage
============

[](#php-coverage)

A [PHP](https://www.php.net/) framework to retrieve code coverage and get reports of the result in various format.

Can be used with this coverage handlers :

- [XDebug](https://xdebug.org/)
- [PHPDBG](https://github.com/krakjoe/phpdbg)
- [PCOV](https://github.com/krakjoe/pcov)

And exports this formats :

- clover
- coverage
- coveralls
- dot *(xdebug only)*
- dump *(xdebug only)*
- export *(PHP exported)*
- json *(PHP stringified)*
- lcov
- raw
- serialize *(PHP serialized)*

---

Table of Contents
=================

[](#table-of-contents)

- [Install](#install)
- [Command](#command)
    - [Options](#options)
    - [Configuration](#configuration)
- [Using .dot](#using-dot)
- [License](#license)

---

Install
-------

[](#install)

```
composer require guitarneck/php-coverage --dev
```

Command
-------

[](#command)

- Using php :

```
$ php bin/coverage  [args...]
```

- Using phpdbg :

```
$ phpdbg -qrr bin/coverage  [args...]
```

### Options

[](#options)

```
   --debug                                Show debug informations.

   --excludes=,--excludes,-x              The paths to exclude. Separated by ','.
                                          Ex: vendor/,tests/,inc/lib/

   --format=,--format,-f                  The file format to be generated.
                                          [clover|coverage|coveralls|dot|dump|export|json|lcov|raw|serialize]
                                          dft: coverage

   --handler=,--handler                   The handler to use for coverage.
                                          [xdebug|phpdbg|pcov]
                                          dft: xdebug

   --help,-h                              This help page

   --includes=,--includes,-i              The paths to include. Separated by ','.
                                          Ex: src/,inc/

   --no-extra-filter                      Do not apply extra filtering (includes & excludes).

   --output-path=,--output-path,-p        The paths to output. Separated by ','.
                                          Ex: {DIR},..,reports
                                          - {DIR}: __DIR__ ('coverage/sources')
                                          - ..   : parent path

```

### Configuration

[](#configuration)

Default configuration can be sets in *sources/Coverage.json*

Using .dot
----------

[](#using-dot)

[Grahpviz](https://graphviz.org/) is open source graph visualization software.

```
$ dot -Tsvg reports\\Hello.dot > Hello.svg
```

---

License
=======

[](#license)

[MIT © guitarneck](./LICENSE)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

1266d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b4bca520f532ba08b5def6e4803e5832f2e04d5008aee310bde0c0cb9db1be1?d=identicon)[guitarneck](/maintainers/guitarneck)

---

Top Contributors

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

---

Tags

phpcoveragedotXdebugcloverpcovcoverallslcovphpdebg

### Embed Badge

![Health badge](/badges/guitarneck-php-coverage/health.svg)

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

###  Alternatives

[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[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)[leanphp/behat-code-coverage

Generate Code Coverage reports for Behat tests

50359.8k2](/packages/leanphp-behat-code-coverage)

PHPackages © 2026

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