{"id":19430665,"url":"https://github.com/jmrashed/php-domain-driven-design-ddd","last_synced_at":"2026-05-29T16:31:19.750Z","repository":{"id":238827347,"uuid":"702719746","full_name":"jmrashed/PHP-Domain-Driven-Design-DDD","owner":"jmrashed","description":"PHP-Domain-Driven Design-DDD","archived":false,"fork":false,"pushed_at":"2023-10-09T21:50:22.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-30T05:05:16.812Z","etag":null,"topics":["ddd","domain-driven-design","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmrashed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-09T21:49:48.000Z","updated_at":"2024-12-11T01:12:06.000Z","dependencies_parsed_at":"2024-05-08T11:31:29.660Z","dependency_job_id":"0df8a42d-32c8-4526-b4be-ee29e0d7c3cf","html_url":"https://github.com/jmrashed/PHP-Domain-Driven-Design-DDD","commit_stats":null,"previous_names":["jmrashed/php-domain-driven-design-ddd","mrzstack/php-domain-driven-design-ddd"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jmrashed/PHP-Domain-Driven-Design-DDD","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2FPHP-Domain-Driven-Design-DDD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2FPHP-Domain-Driven-Design-DDD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2FPHP-Domain-Driven-Design-DDD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2FPHP-Domain-Driven-Design-DDD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmrashed","download_url":"https://codeload.github.com/jmrashed/PHP-Domain-Driven-Design-DDD/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2FPHP-Domain-Driven-Design-DDD/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33662205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ddd","domain-driven-design","php"],"created_at":"2024-11-10T14:25:58.808Z","updated_at":"2026-05-29T16:31:19.734Z","avatar_url":"https://github.com/jmrashed.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP following Domain-Driven Design (DDD) principles\n\n```tree\napp/\n    ├── config/\n    │   ├── database.php\n    ├── Domain/\n    │   ├── Todo/\n    │   │   ├── TodoItem.php\n    │   │   ├── TodoRepository.php\n    │   │   ├── TodoService.php\n    │   ├── User/\n    │   │   ├── User.php\n    │   │   ├── UserRepository.php\n    │   │   ├── UserService.php\n    ├── Infrastructure/\n    │   ├── Persistence/\n    │   │   ├── Todo/\n    │   │   │   ├── MySQLTodoRepository.php\n    │   │   ├── User/\n    │   │   │   ├── MySQLUserRepository.php\n    ├── Presentation/\n    │   ├── Controllers/\n    │   │   ├── TodoController.php\n    │   │   ├── UserController.php\n    │   ├── Views/\n    │   │   ├── todo/\n    │   │   │   ├── index.php\n    │   │   │   ├── create.php\n    │   │   ├── user/\n    │   │   │   ├── profile.php\n    │   │   ├── layouts/\n    │   │   │   ├── app.php\n    ├── public/\n    │   ├── css/\n    │   ├── js/\n    ├── routes/\n    │   ├── web.php\n    ├── templates/\n    │   ├── base.html\n    │   ├── todo/\n    │   │   ├── index.html\n    │   │   ├── create.html\n    │   ├── user/\n    │   │   ├── profile.html\n\n```\n\nHere's a breakdown of the main directories and their purposes:\n\n`config`: Configuration files for your application, including database configuration (database.php).\n\n`Domain`: Organize your domain logic here. It includes Todo and User domains with entities, repositories, and services.\n\n`Infrastructure`: This is where infrastructure-related code resides. It contains Persistence with repository implementations using MySQL (e.g., MySQLTodoRepository, MySQLUserRepository).\n\n`Presentation`: Handle the user interface and HTTP interactions here. Controllers manage HTTP requests and communicate with domain services, while Views contain PHP templates for rendering the user interface.\n\n`public`: Publicly accessible assets like CSS and JavaScript files.\n\n`routes`: Define your application routes in web.php. This is where you handle routing for HTTP requests.\n\n`templates`: This directory contains base templates (base.html) and templates for different views (e.g., todo, user) for rendering the user interface.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmrashed%2Fphp-domain-driven-design-ddd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmrashed%2Fphp-domain-driven-design-ddd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmrashed%2Fphp-domain-driven-design-ddd/lists"}