lctrs/psalm-psr-container-plugin
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| php-static-analysis/psalm-plugin | 0.85 | A Psalm plugin for PHP static analysis that extends Psalm with additional checks and integrations, helping teams catch issues earlier and enforce consistent code quality in their projects. | 2 | 2 | 1 | 2K | 0 | 0.3 | 37.4 | MIT | 1 year ago | |
| phpyh/psalm-tester | 0.85 | Run Psalm assertions from .phpt files. Write phpt tests with --FILE-- and --EXPECT/EXPECTF-- for traces and errors, then execute them via a PHPUnit test suite using PsalmTester. Supports per-suite default Psalm args and per-test --ARGS-- overrides. | 2 | 2 | 1 | 955 | 1 | 0.4 | 34.6 | MIT | 2 years ago | |
| boesing/psalm-plugin-stringf | 0.84 | A Psalm plugin that statically validates printf and sprintf format strings, checking that placeholders match the number and types of arguments passed. Mismatches are caught during analysis instead of at runtime, using Psalm's type inference to verify format specifiers across your codebase. | 12 | — | 2 | — | 6 | 2.7 | 5.3 | NOASSERTION | 3 years ago |
|
| psr/container | 0.84 | 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. | 9,992 | 10,026 | 54 | 30M | 3 | 29.7 | 49.4 | MIT | 5 years ago | |
| php-di/php-di | 0.84 | PHP-DI is a practical, powerful, framework-agnostic dependency injection container for PHP. It helps manage services and wiring with autowiring and flexible configuration, making applications easier to build, test, and maintain across any framework. | 2,772 | 2,855 | 320 | 4M | 56 | 49.2 | 64.3 | MIT | 1 year ago | |
| psalm/psalm-plugin-api | 0.84 | Psalm plugin API providing interfaces and helpers to build and integrate custom plugins with the Psalm static analysis tool, enabling extensions such as new checks, type providers, and project-specific analysis behavior. | 1 | 0 | 0 | 262K | 0 | 0.0 | 55.3 | — | — | |
| bnf/phpstan-psr-container | 0.84 | 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 | 4 | 208K | 1 | 0.6 | 55.2 | GPL-2.0 | 1 year ago | |
| container-interop/container-interop | 0.83 | container-interop/container-interop defines a common ContainerInterface (get/has) so PHP dependency injection containers can work together. It standardizes basic container behavior for libraries and apps, improving portability and reducing coupling across different container implementations. | 1,240 | 1,116 | 44 | 448K | 13 | 12.3 | 39.3 | MIT | 9 years ago | |
| alies-dev/psalm-tester | 0.83 | Run Psalm assertions and traces as phpt test files inside PHPUnit. Write --FILE--/--EXPECT-- fixtures, use EXPECTF for flexible matching, pass custom Psalm arguments globally or per test via --ARGS--, and skip tests conditionally with --SKIPIF--. | 1 | 1 | 0 | 11K | 3 | 20.0 | 60.4 | MIT | 1 month ago | |
| php-standard-library/psalm-plugin | 0.83 | Psalm plugin for PHP Standard Library (PSL) that improves static analysis of PSL Type specifications. It gives Psalm precise inferred types for shapes and coerce results, such as exact array shapes instead of broad unions. Install with Composer as a dev dependency and enable via psalm-plugin. | 25 | 25 | 7 | 39K | 1 | 12.5 | 46.6 | MIT | 7 months ago | |
| weirdan/codeception-psalm-module | 0.83 | Codeception module that integrates Psalm static analysis into your test workflow. Run Psalm checks as part of Codeception suites to catch type issues and improve PHP code quality during CI and local testing. | 5 | 5 | 8 | 2K | 3 | 27.2 | 42.6 | MIT | 2 weeks ago | |
| container-interop/service-provider | 0.83 | 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. | 70 | 71 | 10 | 14K | 4 | 3.2 | 32.2 | — | 2 years ago | |
| psalm/plugin-laravel | 0.83 | Laravel static analysis with built-in taint-based security scanning: traces user input from request to sink to catch SQL injection, XSS, shell injection, file traversal, SSRF, open redirects and timing-unsafe secret comparisons. Runs locally and in CI, no account or cloud upload. | 346 | 346 | 79 | 142K | 103 | 59.0 | 69.7 | MIT | 1 week ago | |
| psalm/plugin-mockery | 0.83 | Adds Psalm static analysis support for the Mockery testing framework. Improves type inference and understanding of mocked objects and expectations in PHPUnit-style tests. Install via Composer and enable with psalm-plugin for better mock-related diagnostics. | 11 | 11 | 9 | 234K | 4 | 26.4 | 66.4 | MIT | 1 week ago | |
| psr-discovery/container-implementations | 0.83 | Auto-discovers an available PSR-11 container at runtime by checking for well-known implementations and returning the first match. Ideal for SDKs/libraries that want PSR-11 support without hard dependencies or user configuration. | 6 | 6 | 1 | 478K | 0 | 1.3 | 55.3 | MIT | 1 year ago | |
| bnf/di | 0.83 | Lightweight dependency injection container for PHP/Laravel projects. Configure bindings and resolve services automatically with simple, minimal setup—ideal for small apps or packages that need clean inversion of control without a heavy framework. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| redaxo/psalm-plugin | 0.82 | Psalm plugin for REDAXO projects providing improved static analysis through framework-specific stubs and type information. Helps Psalm understand REDAXO APIs, reduces false positives, and catches issues earlier in CI and local development. | 6 | 6 | 0 | 2K | 0 | 18.9 | 37.8 | MIT | 3 months ago | |
| psalm/phar | 0.82 | Install Psalm as a standalone PHAR to avoid Composer dependency conflicts. psalm/phar lets you add Psalm to any project or CI environment without pulling in extra packages, keeping your dependency tree clean while still running Psalm reliably. | 26 | 27 | 4 | 96K | 9 | 6.7 | 51.2 | — | 5 years ago | |
| psalm/plugin-symfony | 0.82 | Psalm plugin for Symfony that improves static analysis by inferring container, parameter, console, Doctrine repository, Request, HeaderBag, and Messenger types, plus Symfony taint analysis and service/parameter naming checks. | 242 | 241 | 68 | 252K | 33 | 42.5 | 61.7 | MIT | 3 days ago | |
| weirdan/doctrine-psalm-plugin | 0.81 | A Doctrine plugin for Psalm (v4/v5) that improves static analysis of Doctrine entities and repositories through better type inference. Install via Composer, then enable it with the psalm-plugin command. | 86 | 89 | 45 | 119K | 29 | 39.5 | 63.9 | — | 2 weeks ago |
How can I help you explore Laravel packages today?