Skip to main content
ArcSight

← HomepageAll repository proofValidation recordState of TS Architecture 2026

Repository proof

PHP-Parser architecture

Changing lib/PhpParser/NodeAbstract.php in PHP-Parser reaches 164 modules. 21 files call it directly. Snapshot 679d41e.

The first file to open in PHP-Parser is lib/PhpParser/NodeAbstract.php. A change there reaches 164 of 277 modules.

This lead file reaches 59% of the graph. The median published proof reaches 60%.

PhpParser/NodeAbstract.php164 · 21 fan-in
Node/Expr.php126 · 58 fan-in
PhpParser/Node.php102 · 87 fan-in
Node/Scalar.php41 · 12 fan-in
Node/Stmt.php38 · 30 fan-in

Median 60%. Thick bar is blast share. Thin bar is fan-in.

Download the finding

Project: PHP-Parser · Score: 90/100 (Excellent architecture) · 277 modules · 507 edges · PHP · 9 of 21 · Language score median 86.9

Cycles
1
Duplicate authorities
0
God modules
12
Layer violations
0
arc impact lib/PhpParser/NodeAbstract.php

Under 3 minutes to first arc impact on a TypeScript monorepo (internal runs).

README badge

ArcSight architecture proof for PHP-Parser
[![ArcSight architecture proof for PHP-Parser](https://arcsight.ai/badge/proof/php-parser/)](https://arcsight.ai/repositories/php-parser/)

Blast radius paths

Ranked by blast radius. Fan-in is direct dependents. Blast radius is downstream modules reachable from that file.

PHP-Parser · 679d41e

RankFileFan-inBlastShare
1lib/PhpParser/NodeAbstract.php

concentrates too many responsibilities, shared utility hub

2116459%
2lib/PhpParser/Node/Expr.php

concentrates too many responsibilities, shared utility hub

5812645%
3lib/PhpParser/Node.php

concentrates too many responsibilities

8710237%
4lib/PhpParser/Node/Scalar.php124115%
5lib/PhpParser/Node/Stmt.php303814%
All ranked files
RankFileFan-inBlastShare
6lib/PhpParser/Node/Name.php183212%
7lib/PhpParser/Node/Expr/BinaryOp.php303111%
8lib/PhpParser/Node/Identifier.php163111%

Circular dependencies

This snapshot records 1 dependency cycles.

Nearby proofs

Snapshot notes

In nikic php-parser, a change that begins in PhpParser NodeAbstract.php keeps traveling until it reaches Node Expr.php, with PhpParser Node.php as the third file on that walk and the Node-Expr.php group as the group around them, snapshot mark afcedccfbe.

Node Scalar.php is worth opening beside PhpParser NodeAbstract.php because Node Stmt.php still participates when Node Scalar.php moves, and Node Name.php stays in view for nikic php-parser, snapshot mark afcedccfbe.

Review Expr BinaryOp.php only after Node Expr.php and Node Identifier.php are both on the table, since the link from PhpParser NodeAbstract.php back to PhpParser Node.php belongs to nikic php-parser under snapshot mark afcedccfbe.

Node Expr.php and PhpParser Node.php are later stops, and a reviewer who has already seen PhpParser NodeAbstract.php should still look at Node Scalar.php before treating the Node-Expr.php group as understood for nikic php-parser, snapshot mark afcedccfbe.

Node Stmt.php closes the file list after Node Name.php and PhpParser NodeAbstract.php, which keeps the nikic php-parser note tied to snapshot mark afcedccfbe, and the files named in this paragraph are the ones the review is willing to stand on.

Subsystem overview

  • Node-Expr.php (17 modules)
  • Expr-BinaryOp.php (86 modules)
  • Node-UseItem.php (75 modules)
  • PhpParser-NodeAbstract.php (47 modules)
  • PhpParser-PhpVersion.php (19 modules)

CLI workflow

Impact, then scan, fix, finish, and watch.

  • arc impact <file>See what a change breaks
  • arc scanFind issues
  • arc fixApply fixes
  • arc finishResolve remaining
  • arc watchKeep clean

More commands (explain, guard…) →

FAQ

Which file should change first in nikic php-parser: PhpParser NodeAbstract.php?
Start with PhpParser NodeAbstract.php, because the rest of the nikic php-parser walk leaves from that file and Node Expr.php is the next file in the same review. Commit afcedccfbe records it.
What else is on the nikic php-parser walk besides PhpParser NodeAbstract.php and PhpParser Node.php?
PhpParser Node.php and Node Scalar.php stay on the walk with Node Stmt.php, which are different files from PhpParser NodeAbstract.php inside the Node-Expr.php group for nikic php-parser. Commit afcedccfbe records it.
How should a reviewer use Node Name.php in the nikic php-parser snapshot?
Keep Node Name.php, Expr BinaryOp.php, and Node Identifier.php open together, then check PhpParser NodeAbstract.php before merging the nikic php-parser change. Commit afcedccfbe records it.
Where does the nikic php-parser review stop after Node Expr.php?
Stop after Node Expr.php, PhpParser Node.php, and Node Scalar.php have been compared with PhpParser NodeAbstract.php, leaving the Node-Expr.php group until those nikic php-parser files are clear. Commit afcedccfbe records it.

Run ArcSight on your repo

Install locally, then run arc impact on the file you plan to change — before merge.

npx arcsight init
arc impact <path>
Install ArcSight →

Embed this report

Use this iframe to show the architecture badge on your site.

<iframe src="https://arcsight.ai/embed/php-parser/" width="320" height="180" frameborder="0"></iframe>

Explore

Evidence-backed analysis snapshot. snapshot.json · How ArcSight measures blast radius · Install · Homepage demo