soyhuce/phpinsights-formatter
The soyhuce/phpinsights-formatter package adds a custom formatter to PHP Insights, turning code-quality analysis into a clean, readable report. It helps teams review scores, issues, and metrics more easily in local runs and CI pipelines for Laravel and PHP projects.
Architecture fit
soyhuce/phpinsights-formatter is a dev-tooling package that plugs into PHP Insights (nunomaduro/phpinsights) as a custom output formatter. It sits entirely in the static-analysis/CI layer, not in application runtime code paths.phpinsights.php config's formatters array and by CI jobs that invoke the phpinsights binary.Integration feasibility
composer require --dev soyhuce/phpinsights-formatter, then reference the formatter FQCN in config/phpinsights.php. No migrations, no published config required beyond that edit.src/ — the diff is CI workflow dependency bumps, a README update, and a PHP 8.3 test-matrix addition. Integration steps are unchanged from 2.0.0.Technical risk
Key questions
composer.json support, and does that match our pinned Insights version?^8.3, or is 8.3 only exercised in CI while the constraint still excludes it?Stack fit
Migration path
phpinsights.php, run phpinsights locally to confirm output, then wire into CI.formatters array alongside the new one for one iteration, compare outputs, then drop the old one. Because the array supports multiple formatters, this is a non-destructive A/B.composer remove; no data or schema implications.Compatibility
php constraint, since test coverage and constraint widening are not the same thing.Sequencing
composer require --dev --dry-run against the current lockfile.formatters array; validate output shape and exit-code behaviour.composer.json/composer.lock and phpinsights.php; run the CI job in non-blocking mode for one cycle.Maintenance
Support
Scaling
phpinsights.php.Failure modes
composer install refuses the package. Mitigation: verify during the dry-run step, not after merging.Ramp-up
How can I help you explore Laravel packages today?