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
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 | 1K | 0 | 17.6 | 39.2 | Apache-2.0 | 5 months ago | |
| symplify/phpstan-rules | 0.87 | 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. | 268 | 267 | 30 | 538K | 0 | 22.1 | 52.8 | MIT | 1 month 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. | 289 | 290 | 27 | 51K | 7 | 32.8 | 38.3 | — | 3 weeks 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. | 506 | 508 | 31 | 4M | 2 | 8.6 | 54.1 | MIT | 1 year ago | |
| slam/phpstan-extensions | 0.86 | 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 | 43K | 2 | 27.7 | 45.4 | MIT | 2 months ago | |
| lookyman/phpstan-symfony | 0.86 | 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 | 41 | 5 | 67 | 0 | 1.2 | 4.0 | MIT | 8 years 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 | 32 | 647K | 6 | 12.8 | 51.3 | 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. | 795 | 798 | 101 | 2M | 61 | 53.2 | 82.1 | MIT | 1 month 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 | 234K | 3 | 26.2 | 57.7 | — | 4 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 | 4K | 8 | 12.1 | 24.4 | — | 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. | 535 | 538 | 57 | 4M | 36 | 45.1 | 78.7 | MIT | 2 weeks ago | |
| yamadashy/phpstan-friendly-formatter | 0.80 | PHPStan Friendly Formatter enhances PHPStan output with code frames around errors, a summary of error identifiers and counts, and clean, readable reports. Install via Composer, include the extension in phpstan.neon, and set errorFormat to friendly. | 65 | 64 | 5 | 83K | 1 | 13.1 | 46.8 | MIT | 5 months ago |
How can I help you explore Laravel packages today?