localheinz/phpstan-rules
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ergebnis/phpstan-rules | 0.97 | 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 | |
| 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 | — | |
| symplify/phpstan-rules | 0.92 | 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. | 270 | 270 | 30 | 617K | 0 | 24.8 | 54.5 | MIT | 3 weeks ago | |
| sidz/phpstan-rules | 0.91 | 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 | |
| thecodingmachine/phpstan-strict-rules | 0.91 | 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 | |
| ergebnis/phpunit-slow-test-detector | 0.91 | PHPUnit extension (Composer package and PHAR) that detects and reports slow tests during test runs. Configure a global maximum duration; when tests exceed it, the extension lists them with timings to help you spot and fix performance regressions. | 150 | 152 | 12 | 800K | 8 | 24.3 | 61.0 | MIT | 6 months ago | |
| ergebnis/rector-rules | 0.90 | A curated set of custom Rector rules from ergebnis to automate PHP refactoring and style consistency. Includes rules for sorting arrays and match arms, simplifying call arguments, Faker updates, namespace symbol references, and PHPUnit attribute-to-prefix changes. | 10 | 10 | 0 | 36K | 0 | 30.2 | 53.7 | MIT | 2 months ago | |
| ergebnis/json-normalizer | 0.90 | Normalize JSON documents with composable normalizers. Includes generic and vendor-specific normalizers for formatting, indentation, schema-based ordering, JSON encoding, chaining, callbacks, and controlling final newlines. Install via Composer and apply a Normalizer to produce consistent JSON output... | 82 | 83 | 5 | 2M | 0 | 11.1 | 56.9 | MIT | 1 year ago | |
| thecodingmachine/phpstan-safe-rule | 0.90 | 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 | |
| sanmai/phpstan-rules | 0.88 | 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 | |
| nette/phpstan-rules | 0.87 | Extra PHPStan rules from the Nette ecosystem to catch more issues in your PHP codebase. Adds stricter checks and best-practice validations on top of PHPStan, helping improve static analysis coverage and prevent bugs before runtime. | 10 | 9 | 0 | 4K | 0 | 0.1 | 33.9 | — | — | |
| phpstan/phpstan-strict-rules | 0.83 | 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. | 705 | 714 | 62 | 3M | 38 | 45.1 | 74.9 | MIT | 2 months ago |
How can I help you explore Laravel packages today?