henrikbjorn/phpspec-code-coverage
Deprecated PhpSpec extension that generates code coverage reports (HTML by default, plus clover/php/text) with configurable whitelists/blacklists and output paths. Install via Composer, enable in phpspec.yml, run phpspec (or phpdbg on PHP 7+).
This package is entirely irrelevant for Laravel projects. Laravel exclusively uses PHPUnit for testing, not PhpSpec, making this tool architecturally incompatible. The package is explicitly deprecated in its documentation ("CodeCoverage should not be used with spec testing") and archived with no maintenance since 2016. Adopting it would introduce unnecessary technical debt, conflict with Laravel's standard testing practices, and misallocate engineering resources. Laravel's built-in PHPUnit integration provides native code coverage reporting (e.g., php artisan test --coverage-html) without third-party dependencies, rendering this package obsolete for any Laravel use case.
Never for Laravel projects. Even for non-Laravel PHP projects using PhpSpec, this package should be avoided entirely due to its deprecated status, lack of updates since 2016, and explicit documentation warnings. The recommended alternative (leanphp/phpspec-code-coverage) has zero dependents and is similarly outdated. Modern PHP projects should use PHPUnit's native coverage tools (e.g., Xdebug integration) or established solutions like Infection for mutation testing. This package offers no value in contemporary development environments and introduces security risks from unmaintained code.
"This package is not applicable to Laravel—Laravel uses PHPUnit for testing, not PhpSpec, and this tool is explicitly deprecated with no maintenance since 2016. We already have built-in, reliable code coverage via PHPUnit’s --coverage-html flag, which requires zero configuration. Adopting this would add unsupported dependencies, create security risks from unmaintained code, and waste engineering time. Let’s focus on optimizing our existing PHPUnit setup instead of chasing obsolete tools."
How can I help you explore Laravel packages today?