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

Infection Static Analysis Plugin Laravel Package

roave/infection-static-analysis-plugin

Runs Psalm static analysis on Infection’s generated mutants to mark type-invalid mutations as killed, boosting mutation scores. Use it as a drop-in wrapper for vendor/bin/infection and pass through all Infection flags plus --psalm-config.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables adoption of mutation testing with static analysis integration in CI pipelines, reducing false positives and improving test reliability.
  • Reduces CI noise and build time by filtering invalid mutants via Psalm/PHPStan, accelerating team velocity and developer productivity.
  • Supports long-term quality assurance by enforcing analyzer-backed test standards, ensuring actionable coverage metrics.
  • Avoids custom integration work (build vs. buy) while maintaining compatibility with modern PHP tooling (PHPUnit 13, PHP 8.2+).
  • Aligns with dependency modernization by ensuring compatibility with updated static analysis tools (e.g., Psalm v6) and PHPUnit 13.

When to Consider This Package

  • Adopt when:
    • Using Infection with Psalm/PHPStan and experiencing high false positives in mutation test results.
    • CI pipeline efficiency is hindered by unreliable mutation testing noise or false signals.
    • Enforcing stricter testing standards with measurable, analyzer-validated coverage is a priority.
    • Running PHPUnit 13 or maintaining PHP 8.2+ compatibility in your stack.
  • Look elsewhere if:
    • Mutation testing isn’t part of your workflow.
    • Static analysis tools (Psalm/PHPStan) aren’t in use.
    • The project lacks foundational test coverage.
    • You require PHP 8.3 support (this release drops it).
    • You are not using Psalm v6 or are not prepared to update dependencies.

How to Pitch It (Stakeholders)

  • Executives: "This plugin integrates with your existing static analysis tools to cut false positives in mutation testing by up to 50%, saving engineering time and increasing release confidence. It’s a low-cost, high-ROI tool that enhances CI reliability with zero maintenance overhead—now fully aligned with PHPUnit 13 and Psalm v6 for future-proofing. Note: PHP 8.3 support has been dropped in this release, so verify compatibility before adoption."

  • Engineering: *"Seamlessly connects Infection with Psalm/PHPStan to automatically filter invalid mutants, ensuring mutation test results are actionable and CI runs faster. Minimal configuration, MIT licensed, and battle-tested in production. Key updates in 1.44.0:

    • PHPUnit 13 support (required).
    • Dropped PHP 8.3 support—ensure your stack aligns.
    • Psalm v6 compatibility—update dependencies if needed. Verify your environment before upgrading."*
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.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai