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.87 | 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 | |
| wyrihaximus/phpstan-rules-wrapper | 0.86 | Meta package that bundles popular PHPStan rule sets via phpstan/extension-installer. Install once to enable strict, deprecation, PHPUnit/Mockery, dead-code detection, type-coverage, PSR-3, and more with minimal configuration. | 6 | 6 | 0 | 61K | 1 | 27.8 | 63.2 | MIT | 1 month ago | |
| swissspidy/phpstan-no-private | 0.85 | PHPStan extension that reports deprecation warnings when code uses “pseudo-private” elements marked with @access private. Helps prevent relying on internal classes, methods, functions, or properties. Easy install via Composer with optional extension-installer support. | 9 | 9 | 1 | 156K | 1 | 1.4 | 55.2 | MIT | 1 year ago | |
| phpstan/phpstan | 0.85 | PHPStan is a static analysis tool for PHP that finds bugs without running your code. It catches whole classes of errors early, improving type safety and code correctness, and helps you spot issues before writing tests or deploying. | 13,968 | 14,039 | 951 | 9M | 1,051 | 93.7 | 72.2 | MIT | 1 week ago | |
| slam/phpstan-extensions | 0.85 | 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 | |
| container-interop/service-provider | 0.85 | Experimental PSR draft to standardize PHP service providers (“bundles/modules”) for PSR-11 containers. Defines interfaces for registering factories and extensions so modules can share container definitions across frameworks. Not stable before 1.0; expect breaking changes. | 71 | 72 | 10 | 2K | 4 | 3.2 | 22.4 | — | 2 years ago | |
| e-lodgy/coding-standard | 0.84 | E-Lodgy’s shared Easy Coding Standard (ECS) configuration for PHP projects. Install via Composer, import the provided ecs.php, and apply consistent formatting and code style rules across your src, tests, and config files. | 0 | 0 | 1 | 23 | 1 | 2.6 | 19.0 | MIT | 2 years ago | |
| phpstan/phpstan-doctrine | 0.84 | — | 668 | 669 | 120 | 2M | 78 | 55.9 | 84.2 | 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 | 11K | 2 | 5.6 | 39.8 | MIT | 1 year ago | |
| symplify/phpstan-extensions | 0.83 | 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 | 188K | 0 | 0.4 | 50.6 | MIT | — | |
| psr/container | 0.79 | The PSR-11 Container Interface defines core abstractions for dependency injection in PHP. It’s a standard abstraction, not an implementation—used by DI containers like Laravel’s Illuminate\Container. Essential for dependency management, ensuring interoperability across container implementations. | 10,012 | 10,048 | 53 | 18M | 3 | 29.6 | 45.9 | MIT | 4 years ago |
How can I help you explore Laravel packages today?