PhpCodeArcheology
未认领PHP static analysis for architecture & maintainability — 60+ metrics, complexity analysis, dependency graphs, git churn hotspots, and AI-ready MCP server. Alternative to PHPMetrics.
安装
docker run --rm -v "$(pwd)":/project -v "$(pwd)/report":/output phpcodearcheology /project工具(11 个)
get_class_list
All classes with key metrics, sortable and filterable
get_dependencies
Class dependency analysis (incoming/outgoing)
get_graph
Knowledge graph as JSON (nodes, edges, cycles)
get_health_score
Overall code health score, grade, and project statistics
get_hotspots
Git hotspots ranked by churn × complexity
get_impact_analysis
Impact analysis: what breaks if you change a method? Shows callers and call chains
get_metrics
Detailed metrics for a specific class, file, or function
get_problems
Code quality problems, filterable by severity and type
get_refactoring_priorities
Ranked refactoring candidates with recommendations
get_test_coverage
Test coverage summary — tested/untested classes, coverage gaps, test mapping
search_code
Search entities by name with metric overview