Skip to main content
ArcSight

PHP

Best PHP architecture examples

PHP architecture examples on this page are the 21 published proofs whose adapter classified the repository as PHP.

Repositories

RankRepositoryScoreModules
1Slim98.7/10072
2Mockery97.4/100102
3Guzzle97.2/10076
4Ramsey UUID92.6/100115
5Pest91.9/100260
6Monolog91.3/100125
7wallabag91.1/100187
8Livewire90/100535
Ranks 9–21
RankRepositoryScoreModules
9PHP-Parser90/100277
10Flysystem89.9/100173
11Yii86.9/100519
12Monica85.9/100923
13Dompdf85.8/10079
14Laravel85/1001,759
15Intervention Image82.3/100403
16Doctrine ORM81/100474
17PHP CS Fixer80.4/100670
18BookStack79.5/100663
19PhpSpreadsheet78.2/100552
20Composer77.2/100321
21Grav76.1/100577
PHP repository metrics
Repositories
21
Lead score
98.7
Lead modules
72

How to read these examples

Slim leads the PHP score list at 98.7/100 across 72 modules.

The largest PHP proof by module count is Laravel at 1759 modules and 85/100, which is a different contest from the score leader.

Of these PHP proofs, 14 are libraries and 3 are frameworks.

By size, 3 proofs are under 100 modules, 7 sit between 100 and 299, 10 sit between 300 and 999, and 1 reaches 1000 modules or more.

The examples page keeps the first eight PHP proofs open and leaves the remaining proofs in the same score table.

The PHP leaderboard is a separate page, ordered by score, so this examples article does not repeat that ranking.

Slim is a PHP framework in this set, scored 98.7/100 across 72 modules and 112 edges.

The lead file on that proof is Slim/Interfaces/CallableResolverInterface.php.

Opening Mockery shows a PHP library of 102 modules, with the architecture score at 97.4/100.

The lead file on that proof is library/Mockery/Exception.php.

PHP proof Guzzle records 117 edges and 76 modules, and its score is 97.2/100.

The lead file on that proof is src/NonSerializableTrait.php.

Ramsey UUID is a PHP library in this set, scored 92.6/100 across 115 modules and 303 edges.

The lead file on that proof is src/Exception/InvalidArgumentException.php.

Opening Pest shows a PHP library of 260 modules, with the architecture score at 91.9/100.

The lead file on that proof is src/Exceptions/ShouldNotHappen.php.

PHP proof Monolog records 297 edges and 125 modules, and its score is 91.3/100.

The lead file on that proof is src/Monolog/LogRecord.php.

wallabag is a PHP application in this set, scored 91.1/100 across 187 modules and 324 edges.

The lead file on that proof is src/Helper/EntityTimestampsTrait.php.

Opening Livewire shows a PHP library of 535 modules, with the architecture score at 90/100.

The lead file on that proof is src/ComponentHook.php.

PHP proof PHP-Parser records 507 edges and 277 modules, and its score is 90/100.

The lead file on that proof is lib/PhpParser/NodeAbstract.php.

Flysystem is a PHP library in this set, scored 89.9/100 across 173 modules and 470 edges.

The lead file on that proof is src/Config.php.

Opening Yii shows a PHP framework of 519 modules, with the architecture score at 86.9/100.

The lead file on that proof is framework/base/InvalidConfigException.php.

PHP proof Monica records 2846 edges and 923 modules, and its score is 85.9/100.

The lead file on that proof is app/Models/User.php.

FAQ

Which PHP repository leads the examples?
Slim leads at 98.7/100 across 72 modules.
How many PHP proofs are published?
21 PHP proofs are published. The first 8 stay open on this page.
Where is the PHP leaderboard?
The PHP leaderboard is a separate page at /leaderboards/php/, ordered by score.