https://github.com/junaidqadirb/ddd-php
Domain-Driven Design Implementation In PHP, Hexagonal Architecture to be precise.
https://github.com/junaidqadirb/ddd-php
ddd ddd-example ddd-sample domain-driven-design hexagonal-architecture php ports-and-adapters
Last synced: 8 months ago
JSON representation
Domain-Driven Design Implementation In PHP, Hexagonal Architecture to be precise.
- Host: GitHub
- URL: https://github.com/junaidqadirb/ddd-php
- Owner: JunaidQadirB
- Created: 2018-05-04T12:32:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-04T17:25:59.000Z (over 7 years ago)
- Last Synced: 2025-01-06T06:22:32.901Z (9 months ago)
- Topics: ddd, ddd-example, ddd-sample, domain-driven-design, hexagonal-architecture, php, ports-and-adapters
- Language: PHP
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Domain-Driven Design Implementation In PHP
This is a working demo which demonstrates how to implement Hexagonal Architecture in PHP.
I followed this [blog post](https://www.yordipauptit.com/hexagonal-architecture-in-php/) by [Yordi Pauptit](https://github.com/YP28).
I 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.
## Installation
`git clone https://github.com/JeyKeu/dd-php.git`
`composer install`
## Running
### CLI
`cd dd-php`
`php index.php`
### Browser`cd dd-php`
`php -S localhost:8081`