php-static-analysis/phpstan-extension
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| etsglobal/php-static-analysis | 0.93 | A PHP static analysis package from ETS Global for inspecting PHP codebases and supporting code quality workflows. Integrates into Laravel/PHP projects to help surface potential issues, encourage cleaner code, and complement existing test and CI pipelines with additional static checks. | 0 | 0 | — | 50 | — | 0.0 | 23.6 | — | — | |
| nunomaduro/laravel-code-analyse | 0.93 | Laravel Code Analyse brings static code analysis to your Laravel apps. Run the artisan command to scan your codebase against configurable checks, catch common issues early, and keep your code clean, consistent, and production-ready. | 6,548 | 6,548 | 529 | 187 | 39 | 74.7 | 28.6 | MIT | 3 days ago | |
| larastan/larastan | 0.93 | Larastan is a PHPStan extension for Laravel that adds static typing and catches whole classes of bugs before you write tests. It boots your application's container to resolve types only computable at runtime while supporting Laravel's magic. | 6,547 | 6,560 | 529 | 11M | 39 | 85.8 | 78.7 | MIT | 3 days ago | |
| headercat/phpstan-extension-ide-helper | 0.91 | Provides dummy PHPStan namespace classes and functions so IDEs and autocompletion tools can reference PHPStan internals normally hidden inside its PHAR. Install as a dev dependency to get full autocompletion when writing PHPStan extensions. | 9 | 9 | 0 | 5K | 1 | 31.7 | 43.8 | MIT | 1 week ago | |
| phpstan/extension-installer | 0.91 | Composer plugin that automatically discovers and installs PHPStan extensions, eliminating manual includes in phpstan.neon. Add it as a dev dependency, allow the plugin in Composer, and extensions can declare includes via extra.phpstan for auto-setup. | 516 | 520 | 31 | 6M | 1 | 8.2 | 55.2 | MIT | 2 years ago | |
| sidz/phpstan-rules | 0.91 | 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 | |
| calebdw/phpstan-laravel | 0.91 | A PHPStan extension for Laravel that teaches static analysis about Laravel’s magic, including facades, helpers, Eloquent models, and container bindings, reducing false positives and surfacing more accurate type errors in Laravel apps. | 35 | 35 | 7 | 12K | 0 | 20.4 | 40.9 | MIT | 5 days 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 | |
| wyrihaximus/phpstan-rules-wrapper | 0.91 | WyriHaximus PHPStan Rules Wrapper bundles popular PHPStan rulesets—ergebnis, strict, deprecation, PHPUnit, Mockery, ShipMonk, Symplify, PSR-3 and more—into one Composer package. Install it and, thanks to phpstan/extension-installer, the included rules work out of the box. | 6 | 6 | 0 | 133K | 1 | 31.8 | 64.9 | MIT | 6 days ago | |
| phpstan/php-8-stubs | 0.91 | Stub files for PHP 8 built-in functions, classes, and extensions, maintained for PHPStan. Improves static analysis and type inference by providing accurate signatures and phpDoc where native reflection is incomplete or inconsistent. | 31 | 31 | 12 | 333K | 3 | 30.2 | 65.5 | 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 | |
| soyhuce/phpstan-extension | 0.91 | A PHPStan extension from Soyhuce that adds custom rules and type extensions for Laravel and PHP projects, helping teams catch bugs earlier and improve static analysis accuracy in CI and local development. | 1 | — | 1 | — | 0 | 0.9 | 1.5 | MIT | 1 year ago | |
| php-static-analysis/attributes | 0.91 | PHP attributes that let you annotate classes, methods, and properties with metadata for static analysis tools, improving type inference, purity checks, and IDE support. Lightweight, framework-agnostic, and easy to drop into existing codebases. | 94 | — | 0 | — | 0 | 0.5 | — | MIT | 1 year ago |
|
| symplify/phpstan-extensions | 0.91 | Extra PHPStan rules and extensions from Symplify to improve static analysis of PHP projects. Adds better type inference and framework-aware checks, helping catch bugs earlier and keep codebases consistent with minimal configuration. | 39 | 39 | 5 | 281K | 0 | 0.4 | 53.1 | MIT | — | |
| phpstan/phpstan-php-parser | 0.91 | PHPStan extension for nikic/php-parser that adds precise type inference for AST nodes and visitors, improving static analysis of code that parses, traverses, or manipulates PHP source. | 23 | 23 | 8 | 19K | 1 | 0.3 | 28.3 | — | 4 years ago | |
| rector/type-perfect | 0.91 | 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 | |
| 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 | |
| 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 | 7K | 1 | 0.5 | 32.1 | MIT | — | |
| dave-liddament/phpstan-php-language-extensions | 0.90 | A PHPStan extension that adds support for extra PHP language features and type declarations, widening static analysis coverage so PHPStan understands more of your code. Helps catch bugs earlier and reduces false positives in Laravel and PHP projects. | 44 | 45 | 4 | 25K | 0 | 2.1 | 38.5 | MIT | 11 months ago | |
| prinsfrank/phpstan-doc-code-analyzer | 0.90 | Analyze and validate PHP code examples in your documentation using PHPStan. This package scans doc blocks and docs for code snippets, runs static analysis, and helps catch outdated or incorrect examples early in CI. | 2 | 2 | 0 | 2K | 0 | 1.0 | 38.8 | MIT | 1 year ago |
How can I help you explore Laravel packages today?