jaschilz/php-coverage-badger
Create a code coverage badge from a PHPUnit Clover XML file.
Maintainers
2.0.0
2017-07-21 20:03 UTC
Requires
None
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 9def6f0c2649dc020849420e633a4819878bac03
- Marco Pivetta <ocramius.woop@gmail.com>
- Joseph Schilz <joseph.woop@schilz.org>
This package is not auto-updated.
Last update: 2026-06-07 12:04:18 UTC
README
PHPCoverageBadge is a library for creating an SVG coverage badge from a PHPUnit Clover XML file.
Installation
Composer!
composer require --dev jaschilz/php-coverage-badger
Usage
- Generate XML Code Coverage using PHPUnit
- Run
vendor/bin/php-coverage-badger /path/to/clover.xml /path/to/badge/destination.svg- e.g.
vendor/bin/php-coverage-badger build/clover.xml report/coverage.svg
- e.g.
Acknowledgements
This library is forked from Michael Moussa's php-coverage-checker, derived from Marco Pivetta's post on CI test coverage checks
Inspiration for generating an SVG badge from coverage results is taken from the coverage-badge Python library, derived from the Shields.io project.
