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 | 23 | 1 | 2.6 | 19.0 | MIT | 2 years ago | |
| phpstan/phpstan-strict-rules | 0.93 | Opinionated extra rules for PHPStan to enforce strict, strongly typed PHP. Catches loose booleans in conditions, unsafe strict parameters, useless casts, non-numeric arithmetic, variable overwrites in loops, and switch/case type mismatches for safer defensive code. | 697 | 707 | 61 | 3M | 39 | 45.4 | 73.6 | MIT | 1 month ago | |
| ekino/phpstan-banned-code | 0.92 | PHPStan extension that flags banned code patterns in your project (e.g., var_dump, dd, exit/die, eval, echo/print, shell exec/backticks). Configurable via PHPStan parameters, with optional checks like preventing use imports from Tests in non-test code. | 298 | 300 | 24 | 193K | 4 | 23.9 | 46.1 | MIT | 2 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 | 4K | 0 | 0.0 | 41.6 | — | — | |
| 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. | 13,968 | 14,039 | 951 | 9M | 1,051 | 93.7 | 72.2 | MIT | 1 week 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 | 2K | 1 | 0.4 | 25.8 | 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 | 3K | 0 | 13.5 | 49.3 | MIT | 4 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 | 35K | 2 | 30.0 | 43.9 | MIT | 2 weeks 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. | 453 | 454 | 24 | 253K | 6 | 27.3 | 45.9 | MIT | 4 months ago | |
| symplify/phpstan-rules | 0.84 | 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. | 266 | 265 | 31 | 525K | 0 | 3.5 | 45.5 | MIT | 1 year 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 | 2K | 0 | 19.3 | 41.9 | Apache-2.0 | 3 months ago | |
| 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. | 453 | 451 | 24 | 783 | 6 | 27.6 | 10.2 | MIT | 4 months ago |
How can I help you explore Laravel packages today?