wyrihaximus/phpstan-rules-wrapper
Composer wrapper that bundles popular PHPStan rule sets and extensions into one install. Works out of the box with phpstan/extension-installer, pulling in strict, deprecation, PHPUnit, Mockery, dead-code detection, PSR-3, and type-coverage rules.
Code Quality & Maintainability:
phpstan/phpunit, symplify/phpstan-extensions).Developer Experience (DX) & Onboarding:
phpstan/extension-installer.Security & Compliance:
phpstan-deprecation-rules) and PSR-3 compliance (staabm/phpstan-psr3) to mitigate risks from outdated dependencies or non-standard logging practices.dead-code-detector to identify unused code, reducing attack surfaces and improving maintainability.Performance & Scalability:
phpstan-strict-rules) incrementally to avoid breaking changes, while tracking performance impact via type-coverage metrics.Cost Efficiency:
symplify/phpstan-extensions for Laravel-specific optimizations).Adopt if:
extension-installer).Look elsewhere if:
*"This package lets us enforce best-practice PHP code quality without hiring dedicated tooling engineers. By adopting this wrapper, we’ll:
*"This is a zero-configuration PHPStan power-up for Laravel projects. Key benefits:
composer require wyrihaximus/phpstan-rules-wrapper) adds 8 battle-tested rule sets (e.g., PHPUnit, Mockery, strict rules).extension-installer to auto-load rules without bloating your composer.json.symplify/phpstan-extensions for framework-specific optimizations.strict-rules) via CI flags.
Trade-off: Minimal customization, but ideal for teams that want consistency over control."**"Tired of configuring PHPStan rules manually? This wrapper gives you:
phpstan-strict-rules) with toggleable severity.phpstan.neon or auto-generates one.
How to use:composer require wyrihaximus/phpstan-rules-wrapper../vendor/bin/phpstan analyse.phpstan.neon (if needed).
Pro tip: Add to CI to catch issues pre-merge!"*How can I help you explore Laravel packages today?