jdlabails/php-project-analyzer-bundle
A PHP project analyzer bundle for inspecting application structure, dependencies, and code health. It helps developers understand complex codebases and identify areas for refactoring or maintenance, giving quick visibility into Laravel/PHP projects before audits, upgrades, or onboarding.
PhpProjectAnalyzer, so it answers a narrow question: do we assemble our own static-analysis/quality-reporting pipeline, or adopt an existing analyzer and adapt it? It does not answer "should we invest in code quality tooling" — that decision is already made by the time you evaluate it.config/*.php publishing, no facade. If your roadmap assumes a Laravel-first stack, this is a data point that the ecosystem around this analyzer is Symfony-oriented and you would be porting integration glue yourself.Consider it only when all of the following hold:
PhpProjectAnalyzer library wired into your app's container/console rather than run as a standalone binary.Look elsewhere when:
PHPStan/Psalm with Larastan, which are Laravel-native and actively maintained.PHPStan, Psalm, PHP_CodeSniffer, GrumPHP, and Deptrac (for dependency/architecture rules) are the credible choices; all are actively released and widely depended upon.PhpMetrics, SonarQube, Qodana) give you reporting and history without custom glue.Deptrac is a much stronger fit than a general-purpose analyzer bundle.A reasonable read of the score (~0.46) and the metadata: technically plausible, ecosystem-wise inert. Treat it as a reference implementation to read, not a dependency to ship.
One line: A small, unmaintained Symfony wrapper around a PHP project analyzer — useful as a reference for wiring code-quality metrics into a Symfony app, but not something we should depend on in production.
To executives: This is not a build-vs-buy decision of any size. If we want tech-debt visibility for roadmap planning, the cost is roughly one engineer-week to stand up PHPStan + PhpMetrics in CI plus a monthly review cadence — using maintained tools with large user bases. This bundle would add risk (last released 2018, no downstream users) to a decision we can de-risk for free. Recommendation: do not adopt; fund the maintained-tooling path if the debt-visibility need is real.
To engineering: If you're on Symfony and want an in-app analyzer, read this bundle's source for the container/console wiring pattern, then wire the analyzer yourself or vendor a fork with a named owner. If you're on Laravel, skip it entirely — Larastan/PHPStan is the path. Either way, the gate belongs in CI, not in a bundle.
Ask: Decide whether code-health metrics are a roadmap input this quarter. If yes, approve the CI tooling spike. If no, close this evaluation — the package doesn't change the answer.
How can I help you explore Laravel packages today?