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

Phpstan Symfony Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables strategic prioritization of code quality by catching Symfony-specific bugs (e.g., missing services, incorrect parameter types) during development, reducing technical debt and QA costs.
  • Validates "buy" over "build" for static analysis rules—leveraging a mature, community-maintained extension instead of developing custom solutions in-house.
  • Critical for teams scaling Symfony applications where type safety in dependency injection, console commands, and Messenger handlers directly impacts release velocity and system reliability.

When to Consider This Package

  • Adopt when using Symfony (4.2+), already integrating PHPStan, and needing precise type inference for services, console arguments, Messenger handlers, or form errors.
  • Ideal for teams with >50k lines of Symfony code where manual type hints are error-prone or inconsistent.
  • Look elsewhere if: project uses non-Symfony frameworks (e.g., Laravel, plain PHP), already uses Psalm for static analysis, or lacks PHPStan setup (start with PHPStan core first). Avoid if static analysis is not part of your CI pipeline or if the team lacks capacity for minimal configuration overhead.

How to Pitch It (Stakeholders)

  • Executives: "This MIT-licensed
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
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
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation