handcraftedinthealps/code-coverage-checker
A small CLI tool for PHPUnit that reads a --coverage-php report and fails when line, class, or method coverage falls below a threshold you set. Limit checks to specific directories if needed, making it easy to gate CI builds on real coverage numbers.
A code coverage checker for phpunit.
composer require handcraftedinthealps/code-coverage-checker --dev
phpunit --coverage-php "Tests/reports/coverage.php"
vendor/bin/code-coverage-checker "Tests/reports/coverage.php" "line" "96.0"
Instead of line you can use class or method.
You can also check only specific directories:
vendor/bin/code-coverage-checker "Tests/reports/coverage.php" "line" "96.0" "Directory/A" "Directory/B"

How can I help you explore Laravel packages today?