NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #3821 most downloaded on Packagist
Enforce code coverage in your CI. Not by percentage, but target core methods. No more untested Facades, Controllers, or Repositories. Allows you to start enforcing coverage for new code only!
Latest stable
1.2.0
Last release 1 months ago
20 Oct 2026
Ships fairly regularly
a new release about every 3 months
Nearly every release is documented
notes for 5 of 5 stable releases
Nothing withdrawn
no release was ever pulled
11 months old
5 releases · first in 2025
Drag across the ruler to compare, or tap a release to open it.
PHPUnit 13 support: .cov files from phpunit/php-code-coverage 14 are now supported
.cov files from phpunit/php-code-coverage 14 are now supported (#85)
check, patch-coverage, merge, convert) accept thembasePathmerge accepts clover files together with cobertura or .cov files (#86)
Inconsistent expected lines count ... 20 vs. nonepatch-coverage omits the Coverage: line when the patch changes no executable line, so GitLab does not record a false 0 % (#84)<class> element was kept, so check missed untested methods in the other classes.cov files with dead (unreachable) lines no longer fail with an internal error (#91)\ No newline at end of file markers in patches no longer shift line numbers of added lines (#93)
--patch and patch-coverage failed with Patch file ... has added line #N that does not match actual contentLogicException or wrong method names (#89){relFile} editor placeholder remove the cwd only at the start of the path (#90)--patch needs sebastian/diff 5.1 or newer (#88)
sebastian/diff 4), other commands still work for themYour coding agent can read these notes before it upgrades. Set up the MCP server →
Executable line excluders: exclude lines you don't want to enforce coverage for
Config::addExecutableLineExcluder()IgnoreThrowNewExceptionLineExcluder allows excluding e.g. all throw new LogicException(...) linescheck and patch-coverage commandscheck output// coverage-guard.php
use ShipMonk\CoverageGuard\Config;
use ShipMonk\CoverageGuard\Excluder\IgnoreThrowNewExceptionLineExcluder;
$config = new Config();
$config->addExecutableLineExcluder(new IgnoreThrowNewExceptionLineExcluder([
LogicException::class,
]));
return $config;
CodeBlock::getCoveragePercentage() returns 100% when there are no executable lines (#67)
export-ignore useless files for composer package
Internal error output to print file:line
Enforce code coverage in your CI by targetting core methods (not by percentage)
// coverage-guard.php
use ShipMonk\CoverageGuard\Config;
use ShipMonk\CoverageGuard\Rule\EnforceCoverageForMethodsRule;
$config = new Config();
$config->addRule(new EnforceCoverageForMethodsRule(
requiredCoveragePercentage: 50,
minExecutableLines: 5,
));
return $config;
# Run tests, collect coverage, generate report:
XDEBUG_MODE=coverage vendor/bin/phpunit tests --coverage-filter src --coverage-clover clover.xml
# Verify coverage:
vendor/bin/coverage-guard check clover.xml
One column per month.