shipmonk/phpstan-baseline-per-identifier
Split a PHPStan baseline into multiple NEON files grouped by error identifier, with a loader include. Generate baseline as usual, then run split-phpstan-baseline to organize ignores per identifier for easier reviews and maintenance.
Architecture fit: Excellent alignment with PHPStan's static analysis workflow. The package enhances baseline management by splitting monolithic files into per-identifier components without altering core PHPStan functionality, making it ideal for large codebases where single-file baselines become unwieldy.
Integration feasibility: High. Installation via Composer is trivial, and integration requires only minimal config changes (replacing single baseline include with loader reference). The CLI workflow (generate-baseline + split-phpstan-baseline) integrates seamlessly with existing CI/CD pipelines and Composer scripts.
Technical risk: Low-to-moderate. Primary risks include PHPStan version compatibility (requires ≥2.0), potential edge cases with complex regex patterns in error messages, and filesystem limits for extremely high identifier counts (though uncommon). The "0 dependents" metric suggests limited real-world adoption, but active GitHub maintenance (2.3.0 release) mitigates this.
Key questions:
Stack fit: Native compatibility with Laravel's PHPStan setup (v9+). Works with both neon and PHP-based baselines, fitting standard Laravel project structures. The package requires no additional infrastructure beyond existing PHPStan usage.
How can I help you explore Laravel packages today?