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 Extension Laravel Package

php-static-analysis/phpstan-extension

A PHPStan extension for PHP projects that adds custom rules and configuration to strengthen static analysis. Integrate it with PHPStan to catch potential issues earlier, enforce coding standards, and improve overall code quality in your development workflow.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Static analysis rollout and maturity roadmap: Informs whether to invest in attribute-driven PHPStan configuration as teams move from baseline PHPStan adoption to higher levels and stricter CI gates.
  • Build vs. buy for custom PHPStan extensions: Provides a ready-made, MIT-licensed option for reading static analysis attributes instead of building and maintaining an internal extension.
  • Developer experience and code-quality tooling investments: Supports decisions about reducing PHPStan config sprawl, making suppressions and intentional deviations more expressive, and improving developer feedback loops.
  • Technical debt and risk management: Enables annotation-based documentation of known issues and exceptions, helping product and engineering leaders track where quality gates are relaxed.
  • CI/CD and release quality strategy: Can inform decisions about enforcing analysis rules earlier in pipelines, reducing review friction, and standardizing how teams communicate static-analysis intent.
  • Platform and framework standards for Laravel/PHP teams: Useful when defining PHP 8 attribute conventions for static analysis across services, packages, or monorepos.

When to Consider This Package

  • Your team already uses PHPStan and wants to control static analysis behavior through PHP 8 attributes rather than only inline comments or large ignore-error configuration blocks.
  • You need a lightweight way to express suppressions, intentional deviations, or custom analysis metadata close to the code.
  • You are comfortable evaluating a young, low-adoption package (15 stars, unknown repository) and can vendor, fork, or pin it if necessary.
  • You have engineering capacity to review the extension’s behavior, test it against your PHPStan version, and confirm compatibility with your CI setup.
  • You want an MIT-licensed component with low procurement friction and no commercial dependency.

Look elsewhere if you do not use PHPStan, need runtime validation rather than static analysis, require a mature package with strong community support and SLAs, or are standardized on Psalm/PHP CS Fixer/other tooling. Also avoid if your team cannot tolerate low adoption risk or cannot validate compatibility with current PHPStan releases.

How to Pitch It (Stakeholders)

For executives: This is a small, MIT-licensed PHPStan extension that lets engineers encode static-analysis intent directly in code using PHP attributes. It supports higher code-quality gates and cleaner CI enforcement at near-zero licensing cost. Because the project is young and has limited adoption, position it as a low-risk pilot rather than a platform-wide mandate until engineering validates fit.

For engineering: The package reduces reliance on scattered PHPStan ignore rules and inline comments by making analysis metadata explicit and colocated with code. It is easy to trial in an existing PHPStan pipeline, but should be pinned and reviewed for compatibility. Recommend a short spike: integrate in one service, test against your PHPStan level and CI matrix, and document attribute conventions before broader rollout.

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