phpstan/phpstan-symfony
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| bnf/phpstan-psr-container | 0.87 | 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 | 6 | 139K | 1 | 0.6 | 55.1 | GPL-2.0 | 1 year ago | |
| phpstan/phpstan-phpunit | 0.86 | 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 | |
| psalm/plugin-symfony | 0.86 | Psalm plugin for Symfony: improves static analysis with accurate container service/parameter typing, service subscriber support, console input types, Doctrine repository mapping, Symfony-specific fixes, naming convention checks, DI warnings, and taint analysis. | 241 | 241 | 63 | 246K | 32 | 34.6 | 61.8 | MIT | 5 months ago | |
| eliashaeussler/phpstan-config | 0.86 | 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 | 21K | 1 | 15.8 | 57.2 | GPL-3.0 | 7 months ago | |
| symplify/phpstan-extensions | 0.86 | 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 | 263K | 0 | 0.4 | 52.7 | MIT | — | |
| 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 | 41 | 5 | 67 | 0 | 1.2 | 4.0 | MIT | 8 years ago | |
| symplify/phpstan-rules | 0.84 | 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 | |
| phpstan/phpstan-doctrine | 0.83 | PHPStan extension for Doctrine ORM/ODM: validates DQL and QueryBuilder, infers repository magic methods and EntityManager return types, checks entity field/relationship type mismatches and mapping errors, improves query result typing, and flags proxy-related issues. | 673 | 674 | 120 | 2M | 76 | 56.9 | 84.5 | MIT | 1 week ago |
How can I help you explore Laravel packages today?