Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpspec Code Coverage Laravel Package

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+).

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

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.

When to Consider This Package

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.

How to Pitch It (Stakeholders)

"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."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4