Skip to main content
ArcSight

Observatory reports / 2026

State of PHP Architecture 2026

State of PHP Architecture 2026 covers 21 published proofs and 8,862 modules in this Observatory snapshot. Counts come from frozen snapshots.

Install ArcSight →

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

Trust path: Homepage → Validation → Repositories → Report

Snapshot window: 2026-11-15 – 2026-11-15 · 21 PHP proofs · 8,862 modules · 22,911 edges

Executive summary

Findings below are computed at build time from frozen Observatory analysis snapshots. No estimates or synthetic statistics.

  • 21 indexable PHP proofs with a complete structural snapshot (module count and edge count both greater than zero).
  • 8,862 modules and 22,911 dependency edges traced across included snapshots.
  • Architecture scores in this edition range from 76.1 to 98.7 on the 0–100 snapshot scale. The median is 86.9.
  • Highest recorded fan-in: 336 dependents on `src/Tokenizer/Tokens.php` in PHP CS Fixer.
  • Largest blast radius: 676 downstream modules from `src/Illuminate/Macroable/Traits/Macroable.php` in Laravel.
  • 17 of 21 snapshots report one or more dependency cycles.

Corpus findings (v2)

Computed from the 21 indexable PHP proofs in this edition. Each figure is read from those snapshots.

  • Frameworks have 1.2× smaller blast-radius hotspots than applications.

    Average max blast radius: framework 281 modules across 3 frameworks, application 326 modules across 4 applications.

  • 95% of proofs in this edition have a god-module as the primary gravity center.

    Primary gravity center role is "god-module" in 20 of 21 snapshots.

  • PHP CS Fixer `src/Tokenizer/Tokens.php` is a 2.9× fan-in outlier.

    Fan-in 336 against the 90th percentile of 117 across the fan-in values recorded in this edition.

  • framework proofs score highest; application proofs score lowest in this edition.

    Category averages: framework 90.2 (3 proofs) vs application 83.2 (4 proofs).

Dataset

The 21 indexable PHP proofs in this edition. Each one passes the Proof Density Rule and links to its public proof page. The findings above use this same set.

RepositoryScoreModulesEdgesCycles
Slim

Slim

98.7721121
Mockery

Mockery

97.4102163
Guzzle

Guzzle

97.276117
Ramsey UUID

Ramsey UUID

92.61153034
Pest

Pest

91.926044113
Monolog

Monolog

91.3125297
wallabag

wallabag

91.118732411
Livewire

Livewire

905357712
PHP-Parser

PHP-Parser

902775071
Flysystem

Flysystem

89.9173470
Yii

Yii

86.951994212
Monica

Monica

85.99232,8465
Dompdf

Dompdf

85.87918624
Laravel

Laravel

851,7593,05860
Intervention Image

Intervention Image

82.34031,67614
Doctrine ORM

Doctrine ORM

8147488169
PHP CS Fixer

PHP CS Fixer

80.46703,80023
BookStack

BookStack

79.56631,57351
PhpSpreadsheet

PhpSpreadsheet

78.25521,61963
Composer

Composer

77.23211,36044
Grav

Grav

76.15771,465100+

Fan-in analysis

Highest fan-in modules across all included snapshots (from highRiskModules fields). Fan-in counts direct dependents in each repository's traced subgraph.

Highest fan-in, direct dependents
  • PHP CS Fixer · src/Tokenizer/Tokens.php336 dependents
  • PHP CS Fixer · src/FixerDefinition/FixerDefinition.php301 dependents
  • PHP CS Fixer · src/FixerDefinition/FixerDefinitionInterface.php301 dependents
  • PHP CS Fixer · src/FixerDefinition/CodeSample.php282 dependents
  • PHP CS Fixer · src/Tokenizer/Token.php260 dependents
  • Monica · app/Interfaces/ServiceInterface.php248 dependents
  • Monica · app/Services/BaseService.php239 dependents
  • Laravel · src/Illuminate/Collections/Collection.php202 dependents

Blast radius analysis

Largest blast-radius modules (from hotspots fields) — downstream modules reachable when a node changes.

Largest blast radius, downstream modules
  • Laravel · src/Illuminate/Macroable/Traits/Macroable.php676 modules
  • Laravel · src/Illuminate/Contracts/Support/Arrayable.php645 modules
  • Laravel · src/Illuminate/Contracts/Support/Jsonable.php635 modules
  • Laravel · src/Illuminate/Collections/Arr.php624 modules
  • Monica · app/Models/User.php586 modules
  • Laravel · src/Illuminate/Reflection/Reflector.php580 modules
  • Laravel · src/Illuminate/Conditionable/Traits/Conditionable.php571 modules
  • Laravel · src/Illuminate/Contracts/Container/ContextualAttribute.php568 modules

Architecture score distribution

Score spread across the 21 PHP proofs (arc analyze snapshot, 0–100). Range: 76.1 – 98.7. The dataset table lists every proof. The bars are the twelve highest scores.

Common structural patterns

Recurring hotspots and shared characteristics counted from snapshot fields — not inferred from industry samples.

  • Documented change-risk zones

    Every snapshot with structural proof lists at least one change-risk zone (21 of 21).

    • Slim · Slim/Interfaces/CallableResolverInterface.php
    • Mockery · library/Mockery/Exception.php
    • Guzzle · src/NonSerializableTrait.php
    • Ramsey UUID · src/Exception/InvalidArgumentException.php
    • Pest · src/Exceptions/ShouldNotHappen.php
  • God-module gravity centers

    Primary gravity center role is "god-module" in 20 of 21 snapshots.

    • Mockery · library/Mockery/Exception.php
    • Guzzle · src/NonSerializableTrait.php
    • Ramsey UUID · src/Exception/InvalidArgumentException.php
    • Pest · src/Exceptions/ShouldNotHappen.php
    • Monolog · src/Monolog/LogRecord.php

Key takeaways

  • Frameworks have 1.2× smaller blast-radius hotspots than applications.
  • High fan-in modules are change-risk signals — inspect impact paths before refactoring shared types, utils, or config modules surfaced in this dataset.
  • 20 of 21 snapshots label the primary gravity center as a god-module — a single module carrying disproportionate structural pull.
  • Each row in this report links to a frozen repository proof page — rerun arc impact locally on the module you plan to change before merge.

Methodology

Proof Density Rule. A repository enters this report only when its analysis snapshot has moduleCount > 0 and edgeCount > 0. Incomplete graphs are refused — same gate as public repository proof pages.

Inclusion. This edition includes every indexable PHP proof. The findings and the dataset table use that same set of 21 repositories. A later edition changes the snapshot set and keeps this builder.

Source of truth. Every metric is read from web/analysis-data/[slug].json files produced by npm run generate-analysis. Claims without snapshot backing are listed under excluded findings below.

Validation record → · Repository proof directory →

Excluded findings (no snapshot evidence)

  • Cross-repository break-path analysis omitted — riskChains appear in fewer than two snapshots.
  • Industry-wide rankings omitted — this report describes the proofs in this edition.
  • architectureClassification field omitted — not populated in any included snapshot.
  • First-pass ingestion rate omitted — that figure belongs to the June expansion log.

Source repository proofs

Install ArcSight →Validation record →← Homepage