symplify/phpstan-extensions
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| symplify/phpstan-rules | 0.89 | 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 | |
| sanmai/phpstan-rules | 0.87 | 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 | |
| thecodingmachine/phpstan-strict-rules | 0.86 | 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 | 57K | 9 | 14.1 | 35.1 | — | 4 years ago | |
| phpstan/extension-installer | 0.86 | 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. | 505 | 508 | 31 | 4M | 2 | 8.4 | 53.1 | MIT | 1 year ago | |
| phpstan/phpstan-webmozart-assert | 0.85 | PHPStan extension for webmozart/assert that teaches PHPStan how Assert::* calls narrow types. Supports many assertions (including nullOr*/all*) so values become non-null, specific scalars, instances, arrays, etc. after validation, improving static analysis accuracy. | 184 | 184 | 33 | 649K | 6 | 12.6 | 50.5 | MIT | 1 year ago | |
| phpstan/phpstan-symfony | 0.85 | PHPStan extension for Symfony that improves static analysis with precise return types and framework-specific rules. Understands container/services, parameters, controllers, request/headers, serializer, forms, messenger handlers, cache callbacks, config tree builders, and more. | 788 | 791 | 101 | 2M | 61 | 53.6 | 81.5 | MIT | 2 weeks ago | |
| thecodingmachine/phpstan-safe-rule | 0.85 | 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 | 227K | 3 | 15.8 | 53.4 | — | 6 months ago | |
| lookyman/phpstan-symfony | 0.84 | PHPStan extension for Symfony projects. Improves static analysis with Symfony-specific type inference and container/framework awareness, helping catch bugs earlier and reduce false positives when analyzing services, controllers, and common Symfony patterns. | 42 | — | 5 | — | 0 | 0.2 | — | MIT | 8 years ago | |
| slam/phpstan-extensions | 0.84 | 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 | 71 | 13 | 35K | 2 | 30.0 | 43.9 | MIT | 2 weeks ago | |
| pepakriz/phpstan-exception-rules | 0.83 | 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 | |
| phpstan/phpstan-phpunit | 0.81 | PHPStan extension for PHPUnit: improves type inference for mocks (intersection types for createMock/getMock), understands Foo|MockObject phpDocs, adds early-terminating methods to avoid undefined vars, and refines assert() types. Optional strict rules catch improper assertion usage. | 531 | 534 | 56 | 3M | 35 | 38.5 | 74.2 | MIT | 3 months ago |
How can I help you explore Laravel packages today?