An open API service indexing awesome lists of open source software.

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.

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`