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. | 453 | 454 | 24 | 253K | 6 | 27.3 | 45.9 | MIT | 4 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 | 2K | 1 | 0.4 | 25.8 | MIT | — | |
| 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. | 290 | 290 | 27 | 58K | 9 | 14.1 | 35.2 | — | 4 years 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. | 146 | 148 | 12 | 560K | 8 | 29.0 | 60.5 | MIT | 2 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 | 22K | 0 | 28.8 | 52.5 | MIT | 1 month 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 | 1M | 0 | 15.5 | 58.8 | MIT | 8 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 | 235K | 3 | 15.9 | 53.6 | — | 6 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. | 8 | 8 | 0 | 3K | 0 | 0.0 | 34.4 | — | — |
How can I help you explore Laravel packages today?