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.
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:
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:
How can I help you explore Laravel packages today?