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.
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.
| Repository | Score | Modules | Edges | Cycles |
|---|---|---|---|---|
| Slim Slim | 98.7 | 72 | 112 | 1 |
| Mockery Mockery | 97.4 | 102 | 163 | |
| Guzzle Guzzle | 97.2 | 76 | 117 | |
| Ramsey UUID Ramsey UUID | 92.6 | 115 | 303 | 4 |
| Pest Pest | 91.9 | 260 | 441 | 13 |
| Monolog Monolog | 91.3 | 125 | 297 | |
| wallabag wallabag | 91.1 | 187 | 324 | 11 |
| Livewire Livewire | 90 | 535 | 771 | 2 |
| PHP-Parser PHP-Parser | 90 | 277 | 507 | 1 |
| Flysystem Flysystem | 89.9 | 173 | 470 | |
| Yii Yii | 86.9 | 519 | 942 | 12 |
| Monica Monica | 85.9 | 923 | 2,846 | 5 |
| Dompdf Dompdf | 85.8 | 79 | 186 | 24 |
| Laravel Laravel | 85 | 1,759 | 3,058 | 60 |
| Intervention Image Intervention Image | 82.3 | 403 | 1,676 | 14 |
| Doctrine ORM Doctrine ORM | 81 | 474 | 881 | 69 |
| PHP CS Fixer PHP CS Fixer | 80.4 | 670 | 3,800 | 23 |
| BookStack BookStack | 79.5 | 663 | 1,573 | 51 |
| PhpSpreadsheet PhpSpreadsheet | 78.2 | 552 | 1,619 | 63 |
| Composer Composer | 77.2 | 321 | 1,360 | 44 |
| Grav Grav | 76.1 | 577 | 1,465 | 100+ |
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.
- 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
| Module | Fan-in | Repository | Risk |
|---|---|---|---|
| src/Tokenizer/Tokens.php | 336 | PHP CS Fixer | CRITICAL |
| src/FixerDefinition/FixerDefinition.php | 301 | PHP CS Fixer | CRITICAL |
| src/FixerDefinition/FixerDefinitionInterface.php | 301 | PHP CS Fixer | CRITICAL |
| src/FixerDefinition/CodeSample.php | 282 | PHP CS Fixer | CRITICAL |
| src/Tokenizer/Token.php | 260 | PHP CS Fixer | CRITICAL |
| app/Interfaces/ServiceInterface.php | 248 | Monica | CRITICAL |
| app/Services/BaseService.php | 239 | Monica | CRITICAL |
| src/Illuminate/Collections/Collection.php | 202 | Laravel | CRITICAL |
| src/Illuminate/Collections/Arr.php | 178 | Laravel | CRITICAL |
| src/Livewire.php | 178 | Livewire | CRITICAL |
| app/Models/Contact.php | 170 | Monica | CRITICAL |
| src/Component.php | 168 | Livewire | CRITICAL |
Blast radius analysis
Largest blast-radius modules (from hotspots fields) — downstream modules reachable when a node changes.
- 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.
- 98.7
- 97.4
- 97.2
- 92.6
- 91.9
- 91.3
- 91.1
- 90
- 90
- 89.9
- 86.9
- 85.9
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.
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.