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

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

matthiasnoback/live-code-coverage
=================================

Generate code coverage reports on a live server

v1.6.0(5y ago)1191.1M↓21.2%11[1 issues](https://github.com/matthiasnoback/live-code-coverage/issues)2MITPHPPHP ^7.3 || ^8.0CI failing

Since Oct 28Pushed 5y ago7 watchersCompare

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

READMEChangelog (9)Dependencies (6)Versions (14)Used By (2)

Live code coverage
==================

[](#live-code-coverage)

[![Build Status](https://camo.githubusercontent.com/28b9fa2d396b1bea6970c7e1184179bd3141a1220256d44d43d5091100a51f28/68747470733a2f2f7472617669732d63692e6f72672f6d617474686961736e6f6261636b2f6c6976652d636f64652d636f7665726167652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/matthiasnoback/live-code-coverage)

This library should help you generate code coverage reports on a live server (it doesn't have to be a production server of course).

Install this library using:

```
composer require matthiasnoback/live-code-coverage
```

Collecting code coverage data
-----------------------------

[](#collecting-code-coverage-data)

In your front controller (e.g. `index.php`), add the following:

```
