PHP
Best PHP architecture examples
PHP architecture examples on this page are the 21 published proofs whose adapter classified the repository as PHP.
Repositories
| Rank | Repository | Score | Modules |
|---|---|---|---|
| 1 | Slim | 98.7/100 | 72 |
| 2 | Mockery | 97.4/100 | 102 |
| 3 | Guzzle | 97.2/100 | 76 |
| 4 | Ramsey UUID | 92.6/100 | 115 |
| 5 | Pest | 91.9/100 | 260 |
| 6 | Monolog | 91.3/100 | 125 |
| 7 | wallabag | 91.1/100 | 187 |
| 8 | Livewire | 90/100 | 535 |
Ranks 9–21
| Rank | Repository | Score | Modules |
|---|---|---|---|
| 9 | PHP-Parser | 90/100 | 277 |
| 10 | Flysystem | 89.9/100 | 173 |
| 11 | Yii | 86.9/100 | 519 |
| 12 | Monica | 85.9/100 | 923 |
| 13 | Dompdf | 85.8/100 | 79 |
| 14 | Laravel | 85/100 | 1,759 |
| 15 | Intervention Image | 82.3/100 | 403 |
| 16 | Doctrine ORM | 81/100 | 474 |
| 17 | PHP CS Fixer | 80.4/100 | 670 |
| 18 | BookStack | 79.5/100 | 663 |
| 19 | PhpSpreadsheet | 78.2/100 | 552 |
| 20 | Composer | 77.2/100 | 321 |
| 21 | Grav | 76.1/100 | 577 |
- 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.