Weave 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 Php Parser Laravel Package

phpstan/phpstan-php-parser

PHPStan extension for nikic/php-parser that adds precise type inference for AST nodes and visitors, improving static analysis of code that parses, traverses, or manipulates PHP source.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

  • Architecture fit: This is a development-time PHPStan extension, not a Laravel runtime package. It only fits if the team already uses PHPStan/Larastan and specifically needs PHP-Parser-aware static-analysis behavior. It does not integrate with Laravel application architecture directly.
  • Integration feasibility: Low-to-conditional. It would be installed as a Composer dev dependency, but the package is archived, has only 23 stars, has an unknown repository, and last released on 2021-12-29. Feasibility depends on whether an existing need cannot be met by maintained PHPStan/Larastan features.
  • Technical risk: High. Abandonment means no PHP/PHPStan/PHP-Parser compatibility fixes, no security patches, and no upstream support. Modern Laravel stacks on PHP 8.1+ and current PHPStan/Larastan versions are likely to hit dependency or API drift. Static-analysis regressions could create false positives/negatives in CI.
  • Key questions: Do we actually need this extension, or can native PHPStan/Larastan rules cover the use case? Which PHPStan, PHP-Parser, PHP, and Laravel versions are supported? Is the source/license available for an internal fork? Does it conflict with Larastan or existing PHPStan extensions? Which custom rules depend on it, and what is the removal plan?

Integration Approach

  • Stack fit: Treat as a dev-only Composer package for CI/static analysis. It should not affect Laravel runtime behavior. Prefer native PHPStan/Larastan capabilities; adopt this package only behind a documented, isolated use case.
  • Migration path: Default recommendation is no adoption. If already present, inventory usage via composer why, PHPStan config, and custom rules, then replace with maintained PHPStan extension APIs or native rules. If unavoidable, fork into an internal namespace, pin exact versions, and add regression tests.
  • Compatibility: Validate Composer constraints against the target Laravel, PHP, PHPStan, Larastan, and PHP-Parser versions. Given the 2021 archive date, assume incompatibility with current PHPStan 1.x/2.x and modern PHP until proven otherwise in CI.
  • Sequencing: 1) Confirm the business need and affected rules. 2) Establish a PHPStan/Larastan baseline without the package. 3) Spike installation in a throwaway branch with pinned dependencies. 4) If conflicts or analysis regressions appear, remove or fork. 5) Run full CI matrix and document ownership before rollout.

Operational Impact

  • Maintenance: High burden. The package is archived and unsupported; any fix requires internal ownership. Low stars and unknown repository provenance reduce confidence in long-term maintenance.
  • Support: No vendor or active community support. Escalation path is internal engineering only. Security and compatibility issues must be handled by the team.
  • Scaling: Static-analysis tooling scales with CI capacity, not application traffic. The operational scaling risk is dependency sprawl, fork maintenance, and slower PHP/ PHPStan upgrades across teams.
  • Failure modes: Composer dependency conflicts, PHPStan bootstrap failures, false positives/negatives, CI breakage on PHP upgrades, transitive dependency vulnerabilities, and loss of upstream source. Failures affect developer workflow and release confidence rather than production runtime.
  • Ramp-up: Low for standard PHPStan usage; moderate-to-high for maintaining a fork or custom PHP-Parser integration. The team needs PHPStan extension and PHP-Parser AST knowledge. Recommendation: do not adopt for new work; contain and plan removal if already used.
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.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib