shipmonk/phpstan-rules
40 super-strict PHPStan rules from ShipMonk to plug gaps in extra-strict setups. Install via Composer, include rules.neon, then enable/disable or tune rules per-project. Targets tricky PHP edge cases like unsafe comparisons, casts, arrays, enums and more.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| e-lodgy/coding-standard | 0.94 | E-Lodgy’s shared Easy Coding Standard (ECS) configuration for PHP projects. Install via Composer, import the provided ecs.php, and apply consistent formatting and code style rules across your src, tests, and config files. | 0 | 0 | 1 | 5 | 1 | 2.6 | 10.7 | MIT | 2 years ago | |
| phpstan/phpstan-strict-rules | 0.93 | Extra-strict, opinionated PHPStan rules for highly defensive, strongly typed PHP. Enforces boolean conditions, numeric operands, strict calls (e.g., in_array), detects useless casts, prevents loop variable overwrites, and requires matching switch/case types. | 703 | 713 | 62 | 3M | 38 | 47.0 | 75.0 | MIT | 3 days ago | |
| korbeil/phpstan-generic-rules | 0.92 | PHPStan extension that enforces and improves the use of PHP generics. Adds custom rules to catch missing or incorrect template types, invalid generic usages, and helps keep docblocks and type hints consistent for safer, more accurate static analysis. | 12 | 12 | 5 | 7K | 2 | 9.0 | 39.5 | — | 9 months ago | |
| kcs/phpstan-strict-rules | 0.92 | Fork of thecodingmachine/phpstan-strict-rules to support PHPStan v2. Adds stricter best-practice rules beyond core PHPStan, especially around exception handling (avoid throwing base Exception, empty catches, proper rethrowing). | 3 | 3 | 0 | 5K | 0 | 0.0 | 43.0 | — | — | |
| phpstan/phpstan | 0.92 | PHPStan is a static analysis tool for PHP that finds bugs without running your code. It catches whole classes of errors early, improving type safety and code correctness, and helps you spot issues before writing tests or deploying. | 14,036 | 14,104 | 954 | 9M | 1,060 | 94.2 | 72.3 | MIT | 2 weeks ago | |
| voku/phpstan-rules | 0.91 | 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 | — | |
| contributte/phpstan | 0.90 | Contributte PHPStan integration for Nette projects. Install via Composer and get a ready-to-use PHPStan setup tailored for Nette 3.3+ on PHP 8.2+, with docs and ongoing maintenance by the Contributte team. | 1 | 2 | 2 | 1K | 0 | 10.7 | 42.6 | MIT | 6 months ago | |
| slam/phpstan-extensions | 0.89 | PHPStan extensions with extra strict rules: unused variables, closure parameter typehints, enforce ::class notation, forbid goto, naming conventions, validate PHPUnit annotation FQCNs, and restrict access to globals/static properties in specific contexts. | 71 | 71 | 13 | 43K | 2 | 27.7 | 45.4 | MIT | 2 months ago | |
| wyrihaximus/phpstan-rules-wrapper | 0.89 | 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. | 6 | 6 | 0 | 133K | 1 | 30.2 | 64.9 | MIT | 3 days ago | |
| shipmonk/phpstan-dev | 0.87 | Utilities for developing PHPStan rules: write expected errors directly in fixture files using // error: comments and avoid brittle line-number assertions. Includes an autofix mode to generate/update inline error comments during rule development. | 7 | 7 | 1 | 6K | 1 | 13.5 | 43.7 | MIT | 5 months ago | |
| ergebnis/phpstan-rules | 0.85 | 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. | 457 | 457 | 24 | 345K | 6 | 25.0 | 47.8 | MIT | 5 months ago | |
| sanmai/phpstan-rules | 0.81 | 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 | 17.6 | 39.2 | Apache-2.0 | 5 months ago | |
| amashukov/rector-php-rules | 0.80 | — | 1 | 0 | 0 | 288 | 0 | 0.0 | 29.9 | MIT | — | |
| localheinz/phpstan-rules | 0.79 | 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. | 457 | 456 | 24 | 395 | 6 | 25.0 | 8.6 | MIT | 5 months ago | |
| symplify/phpstan-rules | 0.77 | 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. | 268 | 267 | 30 | 538K | 0 | 22.1 | 52.8 | MIT | 1 month ago |
How can I help you explore Laravel packages today?