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 Exception Rules Laravel Package

pepakriz/phpstan-exception-rules

PHPStan extension that adds custom rules for analyzing exceptions. It helps catch improper throwing/catching, missing @throws annotations, and other exception-related issues to improve correctness and maintainability in PHP codebases.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit: The package is a PHPStan extension, making it a natural fit for projects already utilizing PHPStan for static analysis. It operates within PHPStan's plugin architecture, requiring no structural changes to existing codebases.
Integration feasibility: High for PHPStan users via Composer dependency, but compatibility with modern PHPStan versions (post-1.0) is unverified due to the 2021 last release. Unknown repository status complicates dependency management and security auditing.
Technical risk: High. No updates for >2 years suggests abandonment, risking incompatibility with current PHPStan/PHP versions. Lack of public repository prevents assessing community trust, issue resolution history, or security posture.
Key questions:

  • What PHPStan versions does this support (e.g., 0.12.x vs. 1.x+)?
  • Does it work with PHP 8.0+ features like union types or attributes?
  • Is the repository private, archived, or intentionally hidden?
  • Are there known critical bugs or security vulnerabilities in the codebase?

Integration Approach

Stack fit: Aligns with PHP development best practices for teams using PHPStan. Complements tools like PHPUnit and Psalm by adding exception-specific checks to the analysis pipeline.
Migration path: Minimal—add to composer require --dev pepakriz/phpstan-exception-rules, then extend phpstan.neon with rule definitions. Existing PHPStan rules can coexist without conflicts.
Compatibility: Likely incompatible with PHPStan 1.5+ due to API changes since 2021. Must validate against current PHPStan version during POC. No support for PHP 8.2+ features (e.g., readonly classes) is probable.
Sequencing:

  1. Confirm PHPStan is at a compatible version (e.g., 0.12.x).
  2. Install package and run analysis locally.
  3. Triage false positives/missing rules before CI integration.
    4
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