localheinz/phpstan-rules
A Composer package of PHPStan rules from ergebnis that enforce stricter coding standards, covering areas like final classes, named arguments, and class extension. Install via Composer and include rules.neon, or let phpstan/extension-installer handle it automatically. Best layered on top of PHPStan's...
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| sidz/phpstan-rules | 0.92 | sidz/phpstan-rules adds extra PHPStan rules for catching magic numbers in comparisons, assignments, function arguments, and arithmetic. Install via Composer and configure ignored numbers, numeric strings, and rule exclusions. | 30 | 31 | 4 | 29K | 0 | 23.1 | 47.7 | MIT | 1 month ago | |
| phpstan/phpstan-deprecation-rules | 0.92 | PHPStan extension that reports usage of deprecated classes, methods, properties, constants, and traits. Supports custom deprecation markers and scopes, with stub files for deprecations in third-party code you don’t own. | 464 | 468 | 26 | 6M | 17 | 28.8 | 70.1 | MIT | 3 months ago | |
| rector/type-perfect | 0.92 | Type Perfect adds 10 PHPStan rules to tighten type declarations: replace empty/isset checks with instanceof for precise narrowing, prefer explicit getters over magic array access, and enforce interface signatures. Easy to enable even on legacy code; improves reliability fast. | 105 | 105 | 7 | 403K | 0 | 10.5 | 43.6 | MIT | 3 months ago | |
| shipmonk/phpstan-rules | 0.91 | ShipMonk PHPStan strict rules adds about 40 opinionated, super-strict checks beyond native PHPStan, targeting gaps like unsafe comparisons, casts, and array keys. Install via Composer, include rules.neon, and disable or reconfigure any rule per project. | 156 | 158 | 23 | 376K | 1 | 30.2 | 55.9 | MIT | 1 month ago | |
| ergebnis/phpstan-rules | 0.91 | A Composer package of PHPStan rules from ergebnis, bundled in rules.neon and auto-included via phpstan/extension-installer. Adds stricter checks such as final classes, forbidden extends, and no named arguments to complement PHPStan core and strict rules. | 461 | 463 | 23 | 649K | 1 | 32.5 | 51.0 | MIT | 1 week ago | |
| contributte/phpstan | 0.91 | 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 | 24K | 0 | 4.8 | 56.9 | MIT | 10 months ago | |
| sanmai/phpstan-rules | 0.91 | 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 | 11.9 | 40.8 | Apache-2.0 | 8 months ago | |
| shipmonk/phpstan-dev | 0.91 | Utilities for developing PHPStan rules: write expected errors directly in fixture files using // error: comments and avoid brittle line-number assertions. Includes an autofix mode to generate/update inline error comments during rule development. | 7 | 7 | 1 | 6K | 1 | 7.2 | 41.5 | MIT | 9 months 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 | 7K | 1 | 0.5 | 32.1 | MIT | — | |
| eliashaeussler/phpstan-config | 0.91 | Opinionated PHPStan configuration presets and extensions by Elias Häußler. Drop-in rules and baseline settings to standardize static analysis across projects, reduce false positives, and improve code quality with minimal setup for common PHP/Laravel workflows. | 2 | 2 | 0 | 12K | 1 | 9.9 | 51.9 | GPL-3.0 | 10 months ago | |
| phpstan/phpstan-strict-rules | 0.91 | Extra strict, opinionated PHPStan rules for defensive, strongly typed PHP: require booleans in conditions, strict function-call flags, numeric arithmetic operands, matching switch types, no useless casts, and safer loop variable handling. | 714 | 721 | 63 | 5M | 35 | 45.9 | 75.1 | MIT | 4 days ago | |
| php-static-analysis/phpstan-extension | 0.91 | A PHPStan extension for PHP projects that adds custom rules and configuration to strengthen static analysis. Integrate it with PHPStan to catch potential issues earlier, enforce coding standards, and improve overall code quality in your development workflow. | 15 | 15 | 0 | 2K | 0 | 0.1 | 30.0 | MIT | 1 year ago | |
| symplify/phpstan-rules | 0.90 | A set of 80+ practical PHPStan rules for checking clean architecture, logical errors, naming, namespace placement, visibility overrides, and Symfony, Doctrine, and PHPUnit best practices—useful for any PHP project, from legacy codebases to modern stacks. | 277 | 270 | 36 | 617K | 0 | 25.1 | 54.1 | MIT | 2 weeks ago | |
| kcs/phpstan-strict-rules | 0.90 | 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 | 42.1 | — | — | |
| esfahanahan/phpstan-rules | 0.90 | A collection of custom PHPStan rules for Laravel and PHP projects, helping teams catch architectural and coding issues early. Drop it into your phpstan.neon config to enforce stricter static analysis and keep code quality consistent across the codebase. | 0 | 0 | 0 | 46 | 0 | 19.7 | 27.1 | MIT | 2 weeks ago | |
| thecodingmachine/phpstan-strict-rules | 0.90 | 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. | 287 | 289 | 27 | 54K | 7 | 26.3 | 36.8 | — | 4 months ago | |
| canvural/larastan-strict-rules | 0.90 | Extra strict, opinionated PHPStan rules for Laravel. Install via Composer, include rules.neon, and enable or disable checks like no dynamic where, no facades, no global helpers, and no validation in controllers. | 91 | 90 | 7 | 26K | 0 | 27.1 | 39.2 | MIT | 2 months ago | |
| slam/phpstan-extensions | 0.90 | 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 | 72 | 13 | 42K | 2 | 21.8 | 43.2 | MIT | 5 months ago | |
| oro/phpstan-rules | 0.90 | Oro PHPStan Rules adds custom static analysis checks to PHPStan for Laravel and PHP projects, helping teams catch risky patterns, enforce coding standards, and improve code quality early in CI. Lightweight and easy to integrate. | 13 | 13 | 5 | 538 | 1 | 0.4 | 22.0 | MIT | 2 years ago | |
| nowo-tech/phpstan-frankenphp | 0.90 | PHPStan support for FrankenPHP projects. Ships stubs and rules covering frankenphp_* functions, worker-mode globals and runtime constants, so static analysis understands your FrankenPHP app and flags type errors early. Install with Composer and register the extension in phpstan.neon. | 0 | 0 | 1 | 35K | 0 | 19.5 | 64.8 | MIT | 2 weeks ago |
How can I help you explore Laravel packages today?