ergebnis/phpstan-rules
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| localheinz/phpstan-rules | 0.97 | 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 | |
| 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. | 266 | 265 | 31 | 504K | 0 | 3.5 | 45.3 | MIT | 1 year ago | |
| sidz/phpstan-rules | 0.92 | 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 | 42K | 0 | 7.6 | 44.1 | MIT | 10 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. | 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 | |
| voku/phpstan-rules | 0.90 | 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.7 | MIT | — | |
| 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 | 9 months ago | |
| pepakriz/phpstan-exception-rules | 0.89 | PHPStan extension that adds custom rules for analyzing exceptions. It helps catch improper throwing/catching, missing @throws annotations, and other exception-related issues to improve correctness and maintainability in PHP codebases. | 109 | 111 | 10 | 7K | 8 | 12.1 | 27.1 | — | 4 years 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 | 2K | 0 | 19.3 | 41.9 | Apache-2.0 | 3 months ago | |
| wyrihaximus/phpstan-rules-wrapper | 0.88 | Meta package that bundles popular PHPStan rule sets via phpstan/extension-installer. Install once to enable strict, deprecation, PHPUnit/Mockery, dead-code detection, type-coverage, PSR-3, and more with minimal configuration. | 6 | 6 | 0 | 61K | 1 | 27.8 | 63.2 | MIT | 1 month ago | |
| korbeil/phpstan-generic-rules | 0.87 | 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 | 8.2 | — | — | 7 months ago | |
| phpstan/phpstan-strict-rules | 0.83 | 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 |
How can I help you explore Laravel packages today?