php-qa-ci
Comprehensive QA and CI pipeline for PHP 8.3+ projects: still pulled hundreds of times a month
Install
composer require --dev lts/php-qa-ci:dev-php8.4@devA composer package providing a single qa binary that runs PHP quality tools in a logical, fail-fast order, suitable for local development and CI alike.
Uses a hybrid tool-delivery approach (PHARs via PHIVE, direct Composer dependencies, and an isolated Rector sub-project) to keep the tooling out of a consuming project’s own dependency graph.
Currently averaging several hundred installs a month on Packagist, the strongest current-usage signal of anything in this catalogue. (Packagist counts install events, including CI re-installs on every build, so this measures build volume more than distinct users, but it is still the more honest number to lead with than a lifetime total.)
Pipeline
- Phase 1: Code Modification
- Rector (safe functions, PHPUnit, PHP 8.4 upgrades) and PHP CS Fixer.
- Phase 2: Linting and Validation
- PSR-4 validation, composer checks, strict types enforcement, PHP lint, Composer Require Checker, markdown link checking.
- Phase 3: Static Analysis
- PHPStan at max level, plus PHPArkitect for architecture rules.
- Phase 4: Testing
- PHPUnit, with optional Infection mutation testing.