esi/phpunit-coverage-check
Reads PHPUnit clover/openclover XML coverage reports and computes overall coverage percentage. Fails CI with exit code 1 when coverage drops below a configurable threshold; exits successfully when the threshold is met. Useful for enforcing minimum test coverage.
Architecture fit: The package integrates seamlessly with Laravel's existing PHPUnit testing setup as it processes PHPUnit's clover XML reports. Laravel projects typically generate clover reports via PHPUnit configuration, making it a natural fit for coverage enforcement.
Integration feasibility: High feasibility via Composer installation. Requires minimal configuration changes to CI pipelines or pre-commit hooks. However, compatibility depends on matching PHP/PHPUnit versions (v1/v2/v3 for specific PHP versions).
Technical risk: Critical concerns include 0 dependents, extremely low GitHub score (22.36), and a suspicious "last release" date of 2026-01-28 (future-dated). Low adoption and unverified maintenance status introduce reliability risks.
Key questions: Why is the release date in the future? Is the package actively maintained? How does it handle PHPUnit 10.x (used in Laravel 10) versus 12.2+? What failure modes exist if clover.xml is malformed or missing?
Stack fit: Works with Laravel's default PHPUnit configuration. Requires adding --coverage-clover or --coverage-openclover to PHPUnit execution and configuring the coverage-check step post-test.
Migration path:
composer.json as dev dependency (composer require --dev esi/phpunit-coverage-check:^3.1)php artisan test --coverage-clover)php vendor/bin/coverage-check clover.xml 90)--coverage-openclover flag.Maintenance: Low day-to-day maintenance but high risk if package breaks due to lack of community support. Requires monitoring for breaking changes in PHPUnit or PHP updates.
Support: Limited due to 0 dependents and minimal community traction. No official documentation beyond README; issues may require self-debugging or forking.
Scaling: No impact on scaling since it's a lightweight CLI tool. Handles large codebases via XML parsing but performance depends on clover.xml size.
Failure modes:
How can I help you explore Laravel packages today?