PHPackages                             legovaer/phpcov-runner - 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. legovaer/phpcov-runner

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

legovaer/phpcov-runner
======================

A tool which allows you to perform a code coverage analysis on multiple PHP files

3.0.x-dev(10y ago)0261GNU-2+

Since Jun 7Compare

[ Source](https://github.com/legovaer/phpcov-runner)[ Packagist](https://packagist.org/packages/legovaer/phpcov-runner)[ RSS](/packages/legovaer-phpcov-runner/feed)WikiDiscussions Synced 2w ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

phpcov-runner
=============

[](#phpcov-runner)

**phpcov-runner** is a command-line tool which allows you to analyse multiple PHP files using [PHPCOV](https://github.com/sebastianbergmann/phpcov).

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

[](#installation)

### Composer

[](#composer)

Simply add a dependency on `legovaer/phpcov-runner` to your project's `composer.json` file if you use [Composer](http://getcomposer.org/) to manage the dependencies of your project. Here is a minimal example of a `composer.json` file that just defines a development-time dependency on PHPCOV-Runner:

```
{
    "require-dev": {
        "legovaer/phpcov-runner": "*"
    }
}

```

For a system-wide installation via Composer, you can run:

```
composer global require 'legovaer/phpcov-runner=*'

```

Make sure you have `~/.composer/vendor/bin/ in your path.

Usage
-----

[](#usage)

### Start runner

[](#start-runner)

In order to start the PHPCOVRunner, the only command you need to execute is:

```
$ phpcovrunner start

```

### Analysing PHP files

[](#analysing-php-files)

In order to allow PHP files getting analysed, you will need to add three lines to the top of the PHP script:

#### When using the global application

[](#when-using-the-global-application)

```
$path = $HOME . '/.composer/vendor/legovaer/phpcov-runner/lib";
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
require "autocoverage.php";

```

#### When using the application as a local dependency

[](#when-using-the-application-as-a-local-dependency)

```
$path = __DIR__ . '/vendor/legovaer/phpcov-runner/lib";
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
require "autocoverage.php";

```

### Stop runner &amp; generate report

[](#stop-runner--generate-report)

In order to stop the PHPCOVRunner, you will need to execute:

```
$ phpcovrunner stop

```

More information about formatting the report can be found on the official page of [PHPCOV](https://github.com/sebastianbergmann/phpcov).

###  Health Score

24

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

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

Every ~1 days

Total

2

Last Release

3719d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5813212?v=4)[Levi Govaerts](/maintainers/legovaer)[@legovaer](https://github.com/legovaer)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/legovaer-phpcov-runner/health.svg)

```
[![Health](https://phpackages.com/badges/legovaer-phpcov-runner/health.svg)](https://phpackages.com/packages/legovaer-phpcov-runner)
```

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k142.8M1.1k](/packages/brianium-paratest)[testo/testo

A lightweight PHP testing framework.

20319.6k159](/packages/testo-testo)

PHPackages © 2026

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