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.95 | 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. | 444 | 444 | 22 | 255K | 6 | 33.8 | 48.0 | MIT | 2 months 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 | 19K | 0 | 24.8 | 45.1 | MIT | 8 months 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 | 71K | 9 | 34.1 | 43.3 | — | 4 years ago | |
| ergebnis/phpunit-slow-test-detector | 0.91 | Detect slow PHPUnit tests with an extension delivered as a Composer package or PHAR. Configure a global maximum duration and get a report of tests exceeding the threshold after each run—ideal for catching performance regressions in your suite. | 146 | 148 | 12 | 487K | 8 | 33.2 | 62.6 | MIT | 3 weeks 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... | 81 | 82 | 5 | 1M | 0 | 30.4 | 67.7 | MIT | 7 months 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 | 194K | 2 | 26.3 | 56.7 | — | 4 months ago | |
| phpstan/phpstan-strict-rules | 0.90 | Extra strict, opinionated PHPStan rules for strongly typed PHP. Catches loose/unsafe patterns like non-boolean conditions, useless casts, non-numeric arithmetic, missing strict flags in in_array/array_search, variable overwrites in loops, and switch type mismatches. | 691 | 695 | 59 | 2M | 36 | 45.6 | 74.5 | MIT | 1 month ago | |
| ergebnis/rector-rules | 0.90 | Custom Rector rules from Ergebnis to standardize and modernize PHP code. Includes sorting associative arrays and match arms, converting Faker generator property fetches to method calls, and fixing namespaced symbol references. Install via Composer for dev. | 9 | 9 | 0 | 18K | 0 | 30.3 | 52.8 | MIT | 11 hours ago | |
| symplify/phpstan-rules | 0.90 | 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. | 262 | 261 | 33 | 501K | 3 | 24.2 | 53.8 | MIT | 11 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 | 25.3 | 40.0 | Apache-2.0 | 1 month ago | |
| voku/phpstan-rules | 0.87 | 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 | 4K | 2 | 1.3 | 31.2 | MIT | — | |
| 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. | 6 | 6 | 0 | 2K | 0 | 0.0 | 32.4 | — | — | |
| nunomaduro/larastan | 0.83 | Larastan is a PHPStan extension for Laravel that analyzes your app to catch bugs early. It boots the container to resolve dynamic types, supports Laravel’s “magic,” and improves code quality with stronger static typing. | 6,362 | 6,368 | 493 | 418K | 76 | 89.1 | 60.8 | MIT | 1 month ago | |
| larastan/larastan | 0.83 | Larastan is a PHPStan extension for Laravel that boosts code quality by analyzing your app and catching bugs before tests. It understands Laravel’s “magic” by booting the container to resolve runtime types. Supports Laravel 9+ (version-dependent). | 6,362 | 6,364 | 493 | 3M | 76 | 89.1 | 74.3 | MIT | 1 month ago |
How can I help you explore Laravel packages today?