rregeer/phpunit-coverage-check
--only-percentage output to feed coverage metrics into dashboards (e.g., Grafana) or alerting systems (e.g., Slack notifications for trends).Adopt When:
Look Elsewhere If:
*"This is a lightweight, zero-maintenance tool to enforce code coverage standards in our PHP/Laravel projects. By integrating it into our CI pipeline, we can:
*"This package lets us enforce coverage thresholds (e.g., 80%) in CI/CD or pre-commit hooks with a single CLI command. Key benefits:
phpunit config.--only-percentage to log metrics or trigger alerts.
Example workflow:# In GitHub Actions:
- run: phpunit --coverage-clover=coverage.clover
- run: vendor/bin/coverage-check coverage.clover 80 # Fails if <80%
Alternatives like SonarQube are overkill for this use case—this is the ‘scalpel’ to Sonar’s ‘sledgehammer.’"*
How can I help you explore Laravel packages today?