This is a working demo which demonstrates how to implement Hexagonal Architecture in PHP.
I followed this blog post by Yordi Pauptit.
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.
git clone https://github.com/JeyKeu/dd-php.git
composer install
cd dd-php
php index.php
cd dd-php
php -S localhost:8081