定制 jaschilz/php-coverage-badger 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jaschilz/php-coverage-badger

最新稳定版本:2.0.0

Composer 安装命令:

composer require jaschilz/php-coverage-badger

包简介

Create a code coverage badge from a PHPUnit Clover XML file.

README 文档

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

  1. Generate XML Code Coverage using PHPUnit
  2. 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

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.

统计信息

  • 总下载量: 355.28k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 6
  • 依赖项目数: 40
  • 推荐数: 0

GitHub 信息

  • Stars: 12
  • Watchers: 1
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04