PHPackages                             daison/clover-to-html - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. daison/clover-to-html

ActiveProject[Parsing &amp; Serialization](/categories/parsing)

daison/clover-to-html
=====================

Convert Clover XML into HTML.

1.1.0(5y ago)06851MITPHPPHP ^7.1.3CI failing

Since Jul 31Pushed 5y ago1 watchersCompare

[ Source](https://github.com/daison12006013/clover-coverage-to-html)[ Packagist](https://packagist.org/packages/daison/clover-to-html)[ Docs](https://laravel-zero.com)[ RSS](/packages/daison-clover-to-html/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (5)Versions (6)Used By (0)

[![](https://raw.githubusercontent.com/daison12006013/clover-coverage-to-html/master/sample.png)](https://raw.githubusercontent.com/daison12006013/clover-coverage-to-html/master/sample.png)

Clover XML to HTML
==================

[](#clover-xml-to-html)

Parses a clover xml and maps the coverage based on the relative path on your local and will calculate and creates a static website that shows the coverage.

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

[](#installation)

```
composer create-project daison/clover-to-html:dev-master clover-to-html --no-interaction
cd clover-to-html

```

Executing Command
-----------------

[](#executing-command)

```
./clover-coverage-to-html process --xml-path=tests/coverage.xml --store-path=reports/coverage --config-path=config.example.php

```

Example Config
--------------

[](#example-config)

**clover\_to\_html.php**

```
return [
    'title'   => 'My Project Code Coverage',
    'ignores' => [
        'exact' => [
            '});',
            ']);',
            ');',
            '}',
            '{',
            ']',
            '[',
            ') {',
            'return [',
            '];',
            'try {',
        ],
        'regex' => [
            'catch( |)\((.*)\)',
            '\}( |)else( |)\{',
        ],
    ],
    'badges' => [
        'Repositories' => 'Repositories/', // single
        'Controllers'  => ['Controllers/Api', 'Controllers/Http'], // grouping

        // or regex sample
        'User'         => '(.*)User(.*)',
        'Payment       => ['/Payment', 'Payment(Controller|Repository)'],
    ],
];
```

You could ignore a code based on the `regex` or an `exact` value of that line.

The computation will be different compared to the original clover computations, where we only combined the (green + red is equal to 100%). This is to simplify the wrong output given by `phpdbg` or `xdebug` drivers as example when using php.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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 ~518 days

Total

2

Last Release

2008d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef7a534e3d6099a4116f0d95cfc34a15062ea39b25dde37530ef90b5944868b9?d=identicon)[daison12006013](/maintainers/daison12006013)

---

Top Contributors

[![daison12006013](https://avatars.githubusercontent.com/u/4581415?v=4)](https://github.com/daison12006013 "daison12006013 (23 commits)")

---

Tags

clovercoveragehtmlphpxmlhtmlcloverclover to html

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/daison-clover-to-html/health.svg)

```
[![Health](https://phpackages.com/badges/daison-clover-to-html/health.svg)](https://phpackages.com/packages/daison-clover-to-html)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M712](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[masterminds/html5

An HTML5 parser and serializer.

1.8k260.4M293](/packages/masterminds-html5)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[league/html-to-markdown

An HTML-to-markdown conversion helper for PHP

1.9k31.0M274](/packages/league-html-to-markdown)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6941.5M396](/packages/drupal-core-recommended)

PHPackages © 2026

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