Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Psalm Psr Container Plugin Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit: The plugin is designed for PSR-11 compliant containers. In Laravel projects, this requires using a PSR-11 adapter (e.g., illuminate/container with PSR-11 compatibility layer). Without such an adapter, the plugin has no effect. For standard PSR-11 implementations (e.g., Symfony, Zend), it fits seamlessly.

Integration feasibility: High. As a standard Psalm plugin, installation is trivial via Composer and minimal config updates. Requires Psalm >=4.0 (check plugin docs), but current Psalm versions are compatible.

Technical risk: Low if PSR-11 is already in use. High risk if the project doesn't use PSR-11 container, leading to wasted effort. Also, potential false positives if

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport