reformo/hexagonal-cqrs-skeleton

Hexagonal (Ports and Adapters) Architecture and CQRS Ready Zend Expressive Skeleton!


README

Hexagonal (Ports and Adapters) Architecture and CQRS Ready Laminas Mezzio Skeleton.

An opinionated framework to develop CQRS applications using hexagonal architecture structure.

Built on basically these libraries:

  • Laminas Mezzio (Laminas ServiceManager, FastRoute, Twig)
  • Tactician CommandBus by thephpleague.com
  • Doctrine DBAL
  • Symfony Console

Coding standard

Doctrine Coding Standart is used

Installation

composer create-project reformo/hexagonal-cqrs-skeleton MyApplication

Development Server

FrontWeb

composer run --timeout=0 start-frontweb

PrivateApi

composer run --timeout=0 start-private-api

Production Server using Swoole

FrontWeb

Since Swoole has problems with native PHP sessions, FrontWeb will give 500 Server Error until we fixed it.

bin/mezzio-swoole start --module FrontWeb

PrivateApi

bin/mezzio-swoole start --module PrivateApi