calebdw/phpstan-laravel
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| orrison/meliorstan | 0.91 | Meliorstan is a Laravel-focused PHPStan companion that simplifies static analysis setup with sensible presets and helpful rules, so teams can catch bugs earlier, enforce coding consistency, and keep applications safer with less configuration. | 20 | 20 | 0 | 6K | 1 | 19.3 | 39.5 | MIT | 3 weeks ago | |
| contributte/phpstan | 0.90 | 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 | |
| phpstan/phpstan-strict-rules | 0.90 | 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 | |
| phpstan/phpstan-nette | 0.90 | PHPStan extension for the Nette Framework providing precise type inference for components, DI container getByType/createInstance, forms, dynamic Html methods, magic properties, and presenters, plus optional rules for regex validation and Nette\Object deprecation. | 118 | 119 | 46 | 227K | 6 | 33.5 | 58.7 | MIT | 3 weeks ago | |
| sidz/phpstan-rules | 0.90 | 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 | |
| etsglobal/php-static-analysis | 0.90 | 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 | — | — | |
| mll-lab/laravel-utils | 0.90 | A compact set of practical utilities for Laravel applications, providing reusable helpers and conveniences that cut boilerplate and simplify common development tasks. Easy to install and integrate into existing Laravel projects. Lightweight, dependable building blocks for everyday Laravel developmen... | 6 | — | 3 | — | 0 | 15.0 | — | MIT | 3 months ago | |
| php-static-analysis/phpstan-extension | 0.90 | 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 | |
| php-standard-library/phpstan-extension | 0.90 | PHPStan extension for the PHP Standard Library (PSL) that teaches PHPStan about PSL types, generics, and collection APIs. It improves type inference, adds custom rules, reduces false positives, and catches PSL-specific errors during static analysis for safer, more reliable PHP code. | 24 | 24 | 7 | 66K | 14 | 12.4 | 56.8 | — | 7 months ago | |
| soyhuce/phpstan-extension | 0.90 | 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 | |
| wyrihaximus/phpstan-rules-wrapper | 0.89 | 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 | |
| bnf/phpstan-psr-container | 0.89 | PHPStan dynamic return type extension for PSR-11 ContainerInterface. Improves type inference for $container->get() so services are typed correctly during static analysis. Install via Composer and include extension.neon (or use phpstan/extension-installer). | 13 | 13 | 4 | 208K | 1 | 0.6 | 55.2 | GPL-2.0 | 1 year ago | |
| phpstan/phpstan-php-parser | 0.89 | 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 | — | — | 4 years ago | |
| localheinz/phpstan-rules | 0.89 | 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... | 462 | 462 | 23 | 382 | 1 | 32.5 | 4.2 | MIT | 1 week ago | |
| canvural/larastan-strict-rules | 0.89 | 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 | |
| dave-liddament/phpstan-php-language-extensions | 0.89 | 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 | |
| phpstan/phpstan | 0.89 | PHPStan is a PHP static analysis tool that finds bugs in your code without running it. It catches whole classes of errors before tests are written, bringing compiled-language-style correctness checks to PHP projects. | 14,147 | 14,221 | 972 | 19M | 1,056 | 94.9 | 77.1 | MIT | 3 days ago | |
| phpstan/extension-installer | 0.89 | 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 | |
| kcs/phpstan-strict-rules | 0.89 | 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 | — | — | |
| calebdw/larastan-livewire | 0.89 | Larastan Livewire adds PHPStan/Larastan support for Livewire components, helping static analysis understand public properties, computed properties, actions, validation, and view data so you catch type errors and undefined members before runtime. | 65 | — | 5 | — | 0 | 20.4 | — | MIT | 4 days ago |
How can I help you explore Laravel packages today?