symplify/phpstan-rules
Extra PHPStan rules by Symplify to catch bugs, improve code quality, and enforce consistent conventions. Easy to install and configure, with a broad set of checks for Symfony/Laravel and modern PHP features to keep your codebase clean.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| voku/phpstan-rules | 0.94 | Additional PHPStan rules to catch risky and redundant condition logic and comparisons. Detects double negatives, PHP 8 behavior changes (0 vs ''), insane/invalid comparisons (0=='0foo', 0==='0'), and type-mismatch checks (e.g., object vs non-object). | 33 | 33 | 1 | 3K | 1 | 0.4 | 26.6 | MIT | — | |
| thecodingmachine/phpstan-safe-rule | 0.92 | PHPStan rule set that flags calls to “unsafe” PHP functions that can return false on failure and suggests using the thecodingmachine/safe equivalents that throw exceptions, helping enforce safer, exception-based error handling in your codebase. | 62 | 62 | 25 | 216K | 3 | 25.1 | 56.7 | — | 2 months ago | |
| ergebnis/phpstan-rules | 0.90 | A set of extra PHPStan rules to enforce stricter, opinionated code standards in PHP projects. Install via Composer and include rules.neon (auto via phpstan/extension-installer) to catch issues like named arguments, class design, and more. | 460 | 460 | 23 | 442K | 6 | 23.3 | 49.8 | MIT | 7 months ago | |
| symplify/phpstan-extensions | 0.90 | Extra PHPStan rules and extensions from Symplify to improve static analysis of PHP projects. Adds better type inference and framework-aware checks, helping catch bugs earlier and keep codebases consistent with minimal configuration. | 39 | 39 | 5 | 281K | 0 | 0.4 | 53.1 | MIT | — | |
| sidz/phpstan-rules | 0.90 | Custom PHPStan rules aimed at Laravel projects, helping catch common mistakes and enforce best practices. Adds extra static analysis checks tailored to typical framework patterns, improving code quality, consistency, and confidence during refactors. | 31 | 31 | 4 | 29K | 0 | 5.0 | 41.0 | MIT | 1 year ago | |
| sanmai/phpstan-rules | 0.89 | Extra PHPStan rules from sanmai that extend static analysis for PHP projects. Helps catch additional issues not covered by core rules, improving code quality and consistency with minimal setup. | 3 | 4 | 0 | 1K | 0 | 15.0 | 38.4 | Apache-2.0 | 7 months ago | |
| localheinz/phpstan-rules | 0.89 | Custom PHPStan rules to enforce stricter coding standards in PHP projects. Includes ready-to-use rules.neon (auto-loaded via phpstan/extension-installer) with checks like no named arguments, class final enforcement, and more. Install via Composer as a dev dependency. | 461 | 460 | 22 | 698 | 6 | 22.8 | 11.2 | MIT | 7 months ago | |
| thecodingmachine/phpstan-strict-rules | 0.86 | Extra-strict PHPStan ruleset that flags risky or inconsistent PHP patterns beyond the default checks. Helps enforce cleaner, safer code by catching edge cases and enforcing best practices, with easy opt-in configuration for existing PHPStan setups. | 289 | 289 | 27 | 51K | 7 | 30.1 | 37.5 | — | 2 months ago | |
| solido/phpstan-rules | 0.86 | Custom PHPStan ruleset for Solido-based projects. Adds extra static analysis for enhanced DTOs with simple phpstan.neon config to declare DTO namespaces and excluded interfaces, helping catch type and structure issues across your application. | 2 | 2 | 1 | 398 | 0 | 0.0 | 29.4 | — | — | |
| amashukov/rector-php-rules | 0.83 | — | 1 | 1 | 0 | 317 | 0 | 0.0 | 30.4 | MIT | — |
How can I help you explore Laravel packages today?