{"id":16412256,"url":"https://github.com/junaidqadirb/ddd-php","last_synced_at":"2025-11-16T23:02:01.504Z","repository":{"id":146752059,"uuid":"132137785","full_name":"JunaidQadirB/ddd-php","owner":"JunaidQadirB","description":"Domain-Driven Design Implementation In PHP, Hexagonal Architecture to be precise.","archived":false,"fork":false,"pushed_at":"2018-05-04T17:25:59.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T06:14:18.803Z","etag":null,"topics":["ddd","ddd-example","ddd-sample","domain-driven-design","hexagonal-architecture","php","ports-and-adapters"],"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/JunaidQadirB.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":"2018-05-04T12:32:16.000Z","updated_at":"2023-06-20T21:00:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"37487f5b-eaa5-4d9b-910f-6fcaaa0ae813","html_url":"https://github.com/JunaidQadirB/ddd-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JunaidQadirB/ddd-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JunaidQadirB%2Fddd-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JunaidQadirB%2Fddd-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JunaidQadirB%2Fddd-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JunaidQadirB%2Fddd-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JunaidQadirB","download_url":"https://codeload.github.com/JunaidQadirB/ddd-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JunaidQadirB%2Fddd-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284790280,"owners_count":27063671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-16T02:00:05.974Z","response_time":65,"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","ddd-example","ddd-sample","domain-driven-design","hexagonal-architecture","php","ports-and-adapters"],"created_at":"2024-10-11T06:48:17.196Z","updated_at":"2025-11-16T23:02:01.461Z","avatar_url":"https://github.com/JunaidQadirB.png","language":"PHP","readme":"# Domain-Driven Design Implementation In PHP\n\nThis is a working demo which demonstrates how to implement Hexagonal Architecture in PHP.\n\nI followed this [blog post](https://www.yordipauptit.com/hexagonal-architecture-in-php/) by [Yordi Pauptit](https://github.com/YP28).\n\nI have a bit different approach, I wrapped the  `Domain`,`Application` and `Infrastructures` folders or layers in the Domain itself. In my mind  this is more organized and self contained than scattering say for example everything related to `Post` domain into  `Domain`,`Application` and `Infrastructures` directories.\n\n## Installation\n\n`git clone https://github.com/JeyKeu/dd-php.git`\n\n`composer install`\n\n## Running \n\n### CLI\n\n`cd dd-php`\n    \n`php index.php`\n    \n   \n   \n### Browser\n\n`cd dd-php`\n    \n`php -S localhost:8081`\n\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunaidqadirb%2Fddd-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunaidqadirb%2Fddd-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunaidqadirb%2Fddd-php/lists"}