bnf/phpstan-psr-container
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).
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| phpstan/phpstan-symfony | 0.90 | 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. | 782 | 787 | 100 | 2M | 61 | 53.4 | 84.4 | MIT | 1 month ago | |
| phpstan/phpstan | 0.86 | PHPStan is a PHP static analysis tool that finds bugs without running your code. It checks types and logic, flags common error patterns early, and helps enforce higher code quality—bringing PHP closer to compiled-language safety before tests or runtime. | 13,894 | 13,945 | 947 | 8M | 1,103 | 90.8 | 72.0 | MIT | 1 week ago | |
| lctrs/psalm-psr-container-plugin | 0.83 | Psalm plugin that improves static analysis for PSR-11 containers. Adds smarter type inference for container get/has calls so services and dependencies resolve to the right classes, reducing false positives and making container-heavy code safer to refactor. | 17 | 17 | 7 | 8K | 2 | 25.5 | 44.1 | MIT | 1 year ago |
How can I help you explore Laravel packages today?