PHPActive

php-qa-ci

Comprehensive QA and CI pipeline for PHP 8.3+ projects

Install

composer require --dev lts/php-qa-ci:dev-php8.4@dev

A 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.

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.