leanphp/phpspec-code-coverage
Adopt if:
Look elsewhere if:
phpunit --coverage).For Executives: "This package lets us automate PhpSpec test coverage reporting in our CI pipeline at no cost. By enforcing coverage thresholds, we can reduce bugs in production and accelerate onboarding for new devs. It’s a lightweight way to align with our quality goals without adding vendor lock-in. For ~$0, we get visibility into our test health—similar to what tools like Codecov offer, but self-hosted and PhpSpec-native."
For Engineering: *"If we’re already using PhpSpec, this gives us coverage reports without extra tooling. It integrates cleanly with our existing workflow:
--min=80).
Downside? It’s PhpSpec-only—if we mix PHPUnit/PhpSpec, we’ll need two tools. But for teams committed to BDD, this is a no-brainer upgrade over manual coverage checks."*For Developers:
"Want to see which parts of your code aren’t tested by PhpSpec? This tool generates HTML/CLI coverage reports in seconds. No more guessing—just run ./vendor/bin/phpspec-code-coverage and see gaps. Works with your existing setup; just add it to your composer.json and CI config. Perfect for legacy codebases or when you’re trying to hit that 90% coverage target."
How can I help you explore Laravel packages today?