PHPackages                             codebtech/coveragebadge - 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. codebtech/coveragebadge

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

codebtech/coveragebadge
=======================

Creates code coverage badge from Clover XML files.

v0.3.7(1y ago)332.6k↓22%2[5 PRs](https://github.com/codebtech/coveragebadge/pulls)MITPHPCI passing

Since May 30Pushed 1y agoCompare

[ Source](https://github.com/codebtech/coveragebadge)[ Packagist](https://packagist.org/packages/codebtech/coveragebadge)[ Docs](https://github.com/codebtech/coveragebadge)[ RSS](/packages/codebtech-coveragebadge/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (8)Versions (16)Used By (0)

CoverageBadge
=============

[](#coveragebadge)

[![PHP lint & test](https://github.com/codebtech/coveragebadge/actions/workflows/php.yml/badge.svg)](https://github.com/codebtech/coveragebadge/actions/workflows/php.yml) [![PHP Code Coverage](./badges/php.svg)](./badges/php.svg) [![Packagist dowloads](https://camo.githubusercontent.com/bc3ccac7120e235fe3284add4d17291e7dc7a8024b060fa167ff0c5dd2a1ebf3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f646562746563682f636f76657261676562616467653f6c6f676f436f6c6f723d666666266c6162656c3d7061636b6167697374)](https://camo.githubusercontent.com/bc3ccac7120e235fe3284add4d17291e7dc7a8024b060fa167ff0c5dd2a1ebf3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f646562746563682f636f76657261676562616467653f6c6f676f436f6c6f723d666666266c6162656c3d7061636b6167697374)

CoverageBadge is a PHP library for creating SVG coverage badges from Clover XML files.

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

[](#installation)

`composer require codebtech/coveragebadge --dev`

Features
--------

[](#features)

- Produces a code coverage badge utilizing a Clover coverage XML file
- Creates a code coverage badge from several Clover XML files, automatically incorporating the coverage percentages
- Accepts a coverage name as an input to include in the generated badge

Usage
-----

[](#usage)

- Execute the command to generate badge for single Clover XML input

```
vendor/bin/coverage-badge /path/to/clover.xml /path/to/badge/destination.svg test-name

```

- To blend multiple Clover files, enumerate the XML inputs separated by commas and use the command

```
vendor/bin/coverage-badge /path/to/clover.xml,/path/to/clover2.xml /path/to/badge/destination.svg test-name

```

Acknowledgements
----------------

[](#acknowledgements)

This library is inspired by [JASchilz/PHPCoverageBadge](https://github.com/JASchilz/PHPCoverageBadge)

###  Health Score

33

—

LowBetter than 73% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~38 days

Total

11

Last Release

585d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/36844205?v=4)[Mohan Raj](/maintainers/m0hanraj)[@m0hanraj](https://github.com/m0hanraj)

---

Top Contributors

[![mohanrajpac](https://avatars.githubusercontent.com/u/19469816?v=4)](https://github.com/mohanrajpac "mohanrajpac (32 commits)")[![m0hanraj](https://avatars.githubusercontent.com/u/36844205?v=4)](https://github.com/m0hanraj "m0hanraj (31 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![jonnynews](https://avatars.githubusercontent.com/u/148061917?v=4)](https://github.com/jonnynews "jonnynews (1 commits)")

---

Tags

badge-generatorclovercodecoveragecomposercomposer-librarycomposer-packagecoverage-badgecoverage-badgescoverage-reportphpunit

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/codebtech-coveragebadge/health.svg)

```
[![Health](https://phpackages.com/badges/codebtech-coveragebadge/health.svg)](https://phpackages.com/packages/codebtech-coveragebadge)
```

###  Alternatives

[szepeviktor/phpstan-wordpress

WordPress extensions for PHPStan

3309.4M1.2k](/packages/szepeviktor-phpstan-wordpress)[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14228.7M340](/packages/dms-phpunit-arraysubset-asserts)[jasonmccreary/laravel-test-assertions

A set of helpful assertions when testing Laravel applications.

3524.1M38](/packages/jasonmccreary-laravel-test-assertions)[orchestra/workbench

Workbench Companion for Laravel Packages Development

8219.1M67](/packages/orchestra-workbench)[soyuka/contexts

Behatch contexts

282.2M21](/packages/soyuka-contexts)[roquie/laravel-dusk-select2

Select2.js support for the Laravel Dusk testing.

41356.2k5](/packages/roquie-laravel-dusk-select2)

PHPackages © 2026

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