# PHP project architecture examples

Interactive architecture diagrams of 221 open-source PHP repositories with a GitDiagram architecture diagram, most stars first. Each diagram shows the project's main components, how they connect, and links every part to its file on GitHub.

Across the 118 most-starred PHP projects here, the median diagram has 21 components. 63% draw a data store (most often files on disk, a cache and MySQL or MariaDB), 9% have a command-line interface and 19% a web interface.

34% have a plugin or extension system and 11% draw a queue or event bus.

The files their components link to most are index.php (27), User.php (10), Controller.php (8), app.php (6) and database.php (5).

Group names that recur: “platform services” (9), “administration” (5) and “public api” (4).

## Repositories 1 to 50 of 221

1. [danielmiessler/seclists](https://gitdiagram.com/danielmiessler/seclists) (73.6k stars): SecLists is a security-assessment artifact repository, not a conventional application. Markdown: https://gitdiagram.com/danielmiessler/seclists.md
2. [coollabsio/coolify](https://gitdiagram.com/coollabsio/coolify) (65.7k stars): Coolify is a self-hosted deployment and infrastructure-management platform. Markdown: https://gitdiagram.com/coollabsio/coolify.md
3. [nextcloud/server](https://gitdiagram.com/nextcloud/server) (37.3k stars): Nextcloud Server is a self-hosted platform for storing, syncing, sharing, and protecting user data, with additional apps that extend its capabilities. Markdown: https://gitdiagram.com/nextcloud/server.md
4. [laravel/framework](https://gitdiagram.com/laravel/framework) (35k stars): Laravel is a PHP web application framework. Markdown: https://gitdiagram.com/laravel/framework.md
5. [symfony/symfony](https://gitdiagram.com/symfony/symfony) (31.2k stars): Symfony is a PHP framework for web and console applications, alongside reusable components. Markdown: https://gitdiagram.com/symfony/symfony.md
6. [filamentphp/filament](https://gitdiagram.com/filamentphp/filament) (30k stars): The README tells you that Filament is meant to “accelerate Laravel development” by providing pre-built, beautifully designed components. Markdown: https://gitdiagram.com/filamentphp/filament.md
7. [composer/composer](https://gitdiagram.com/composer/composer) (29.4k stars): Based on our analysis of the file tree and the README, this project is the well-known Composer tool—a dependency manager for PHP. Markdown: https://gitdiagram.com/composer/composer.md
8. [bagisto/bagisto](https://gitdiagram.com/bagisto/bagisto) (28.1k stars): Bagisto is a Laravel eCommerce and marketplace platform. Markdown: https://gitdiagram.com/bagisto/bagisto.md
9. [fzaninotto/faker](https://gitdiagram.com/fzaninotto/faker) (26.6k stars): Faker is a PHP fake-data generation library. A PHP application creates a locale-aware Generator through Factory, requests formatter values, and receives generated data. Markdown: https://gitdiagram.com/fzaninotto/faker.md
10. [monicahq/monica](https://gitdiagram.com/monicahq/monica) (24.4k stars): Monica is a full–stack web application based on Laravel (PHP) with a rich, Vue–powered frontend. Markdown: https://gitdiagram.com/monicahq/monica.md
11. [krayin/laravel-crm](https://gitdiagram.com/krayin/laravel-crm) (24k stars): Krayin is a modular Laravel CRM for managing customer relationships and the customer lifecycle. Markdown: https://gitdiagram.com/krayin/laravel-crm.md
12. [livewire/livewire](https://gitdiagram.com/livewire/livewire) (23.6k stars): Livewire is a Laravel package for server-authored, dynamically updated UI components. Laravel applications consume its PHP API/components and load its browser runtime. Markdown: https://gitdiagram.com/livewire/livewire.md
13. [guzzle/guzzle](https://gitdiagram.com/guzzle/guzzle) (23.5k stars) Markdown: https://gitdiagram.com/guzzle/guzzle.md
14. [firefly-iii/firefly-iii](https://gitdiagram.com/firefly-iii/firefly-iii) (22.8k stars): Web Interface (Vue.js based, with v1 and v2 versions) Markdown: https://gitdiagram.com/firefly-iii/firefly-iii.md
15. [phpmailer/phpmailer](https://gitdiagram.com/phpmailer/phpmailer) (22.3k stars): PHPMailer is a PHP library for composing and sending feature-rich email. Markdown: https://gitdiagram.com/phpmailer/phpmailer.md
16. [designpatternsphp/designpatternsphp](https://gitdiagram.com/designpatternsphp/designpatternsphp) (22.2k stars): 1. This repository is a PHP design-patterns catalog, not an application with one runtime domain. Markdown: https://gitdiagram.com/designpatternsphp/designpatternsphp.md
17. [matomo-org/matomo](https://gitdiagram.com/matomo-org/matomo) (21.9k stars): Matomo is a self-hosted analytics platform: website tracking data is collected and stored, then exposed as reports through its API and interface. Markdown: https://gitdiagram.com/matomo-org/matomo.md
18. [seldaek/monolog](https://gitdiagram.com/seldaek/monolog) (21.4k stars): Monolog is a PSR-3 PHP logging library. Markdown: https://gitdiagram.com/seldaek/monolog.md
19. [wordpress/wordpress](https://gitdiagram.com/wordpress/wordpress) (21k stars): Core Entry Point and Configuration: At the top-level, files like index.php, wp-config-sample.php (and the eventual wp-config.php), and license.txt represent the core entry… Markdown: https://gitdiagram.com/wordpress/wordpress.md
20. [sebastianbergmann/phpunit](https://gitdiagram.com/sebastianbergmann/phpunit) (20k stars): PHPUnit is an open-source, CLI-based testing framework for PHP (an xUnit tool). Markdown: https://gitdiagram.com/sebastianbergmann/phpunit.md
21. [fruitcake/laravel-debugbar](https://gitdiagram.com/fruitcake/laravel-debugbar) (19.3k stars): Laravel Debugbar integrates PHP Debug Bar into a Laravel application. Markdown: https://gitdiagram.com/fruitcake/laravel-debugbar.md
22. [barryvdh/laravel-debugbar](https://gitdiagram.com/barryvdh/laravel-debugbar) (19.1k stars): Based on your provided file tree and README, this project is an open-source Laravel package called “Debugbar for Laravel”. Markdown: https://gitdiagram.com/barryvdh/laravel-debugbar.md
23. [bookstackapp/bookstack](https://gitdiagram.com/bookstackapp/bookstack) (19.1k stars): BookStack is a documentation platform for organizing books, chapters, and pages. Markdown: https://gitdiagram.com/bookstackapp/bookstack.md
24. [easychen/howto-make-more-money](https://gitdiagram.com/easychen/howto-make-more-money) (18.7k stars): This repository is a Chinese-language book about ways programmers can earn supplemental income, rather than an application. Markdown: https://gitdiagram.com/easychen/howto-make-more-money.md
25. [bcit-ci/codeigniter](https://gitdiagram.com/bcit-ci/codeigniter) (18.2k stars): Front Controller and Entry Point: At the very top, include the entry file (index.php) which bootstraps the entire framework. Markdown: https://gitdiagram.com/bcit-ci/codeigniter.md
26. [koel/koel](https://gitdiagram.com/koel/koel) (17.1k stars): Frontend: The client-side application written in Vue.js (located in the “resources/assets/js” directory, along with Vue components, tests, and related configuration files). Markdown: https://gitdiagram.com/koel/koel.md
27. [easychen/opc-methodology](https://gitdiagram.com/easychen/opc-methodology) (17k stars): This repository combines a Chinese-language one-person-business methodology book with a collection of agent skills. Markdown: https://gitdiagram.com/easychen/opc-methodology.md
28. [flarum/flarum](https://gitdiagram.com/flarum/flarum) (16.2k stars): Web Server / Deployment: Represent the configuration files like .nginx.conf and public/web.config. Markdown: https://gitdiagram.com/flarum/flarum.md
29. [getgrav/grav](https://gitdiagram.com/getgrav/grav) (15.7k stars): Grav is a file-based CMS and web platform. A web request enters through the front controller, is handled by the Grav runtime and its processors, and produces a rendered response. Markdown: https://gitdiagram.com/getgrav/grav.md
30. [grokability/snipe-it](https://gitdiagram.com/grokability/snipe-it) (15k stars): Snipe-IT is a web-based IT asset-management system. Markdown: https://gitdiagram.com/grokability/snipe-it.md
31. [qloapps/qloapps](https://gitdiagram.com/qloapps/qloapps) (14.4k stars): QloApps is a PHP hotel reservation system and booking engine built on a PrestaShop-style platform. Markdown: https://gitdiagram.com/qloapps/qloapps.md
32. [intervention/image](https://gitdiagram.com/intervention/image) (14.3k stars) Markdown: https://gitdiagram.com/intervention/image.md
33. [yiisoft/yii2](https://gitdiagram.com/yiisoft/yii2) (14.3k stars) Markdown: https://gitdiagram.com/yiisoft/yii2.md
34. [phpoffice/phpspreadsheet](https://gitdiagram.com/phpoffice/phpspreadsheet) (13.9k stars): Core API & Data Model: This layer consists of classes representing the spreadsheet’s fundamental structures—Spreadsheet, Worksheet, Cell, Row, Column, DefinedName, and so on. Markdown: https://gitdiagram.com/phpoffice/phpspreadsheet.md
35. [phpstan/phpstan](https://gitdiagram.com/phpstan/phpstan) (13.9k stars) Markdown: https://gitdiagram.com/phpstan/phpstan.md
36. [roots/sage](https://gitdiagram.com/roots/sage) (13.3k stars): Sage is a WordPress starter theme that combines WordPress’s PHP theme lifecycle with Acorn/Laravel conventions, Blade templates, Tailwind-oriented styling, and Vite-built… Markdown: https://gitdiagram.com/roots/sage.md
37. [mailcow/mailcow-dockerized](https://gitdiagram.com/mailcow/mailcow-dockerized) (13.1k stars): mailcow: dockerized is a self-hosted mail-server stack packaged as coordinated Docker Compose services. Markdown: https://gitdiagram.com/mailcow/mailcow-dockerized.md
38. [spatie/laravel-permission](https://gitdiagram.com/spatie/laravel-permission) (12.9k stars) Markdown: https://gitdiagram.com/spatie/laravel-permission.md
39. [digininja/dvwa](https://gitdiagram.com/digininja/dvwa) (12.8k stars): DVWA is a deliberately insecure PHP web application built for security testing, training, and demonstration. Markdown: https://gitdiagram.com/digininja/dvwa.md
40. [spartnernl/laravel-excel](https://gitdiagram.com/spartnernl/laravel-excel) (12.7k stars): 1. This repository is a Laravel package that wraps PhpSpreadsheet and exposes a higher-level export/import API. Markdown: https://gitdiagram.com/spartnernl/laravel-excel.md
41. [piotrplenik/clean-code-php](https://gitdiagram.com/piotrplenik/clean-code-php) (12.4k stars): Clean Code PHP is a documentation product: it presents PHP-oriented software engineering principles for developers to apply while writing and refactoring code. Markdown: https://gitdiagram.com/piotrplenik/clean-code-php.md
42. [typecho/typecho](https://gitdiagram.com/typecho/typecho) (12.3k stars) Markdown: https://gitdiagram.com/typecho/typecho.md
43. [slimphp/slim](https://gitdiagram.com/slimphp/slim) (12.2k stars) Markdown: https://gitdiagram.com/slimphp/slim.md
44. [magento/magento2](https://gitdiagram.com/magento/magento2) (12.2k stars): Magento Open Source is an extensible e-commerce platform. Markdown: https://gitdiagram.com/magento/magento2.md
45. [aureuserp/aureuserp](https://gitdiagram.com/aureuserp/aureuserp) (12k stars): Aureus ERP is a modular business-management platform. Markdown: https://gitdiagram.com/aureuserp/aureuserp.md
46. [thedevdojo/voyager](https://gitdiagram.com/thedevdojo/voyager) (11.8k stars) Markdown: https://gitdiagram.com/thedevdojo/voyager.md
47. [leantime/leantime](https://gitdiagram.com/leantime/leantime) (11.7k stars): Leantime is a web-based project-management application. Markdown: https://gitdiagram.com/leantime/leantime.md
48. [walkor/workerman](https://gitdiagram.com/walkor/workerman) (11.5k stars) Markdown: https://gitdiagram.com/walkor/workerman.md
49. [tymondesigns/jwt-auth](https://gitdiagram.com/tymondesigns/jwt-auth) (11.5k stars) Markdown: https://gitdiagram.com/tymondesigns/jwt-auth.md
50. [pestphp/pest](https://gitdiagram.com/pestphp/pest) (11.4k stars): CLI Entry Points – Represented in the “bin” folder (e.g., bin/pest and worker.php). These are the command-line executables that launch the testing process. Markdown: https://gitdiagram.com/pestphp/pest.md

Next page: https://gitdiagram.com/architecture-examples/php/2

More hubs: https://gitdiagram.com/architecture-examples

Counted over GitDiagram's stored diagrams of public repositories, from the names their components and groups carry and the files they link to; the rules are the ones in the [2026 open-source architecture report](https://gitdiagram.com/open-source-architecture-2026). Stars are GitHub's when the diagram was last made. Rebuilt daily: hubs grow as more repositories' languages are known.
