Skip to content
This repository has been archived by the owner on Aug 21, 2021. It is now read-only.

Latest commit

 

History

History
50 lines (34 loc) · 2.1 KB

readme.md

File metadata and controls

50 lines (34 loc) · 2.1 KB

Hexagonal Application Skeleton using CakePHP 3.6+

This is a pure learning project and proof of concept! NOT ready for production!

A hexagonal architecture is using ports and adapters to communicate and separate different layers of your application.

This application skeleton is trying to implement a hexagonal architecture using the goodies of the CakePHP framework.

Goals

  • Learning something about software architecture
  • Stay PSR compatible with all interfaces if possible
  • Follow php-pds
  • Using DI container
  • Use IoC where it makes sense
  • Typehint almost everything
  • Using a command bus (but no CQRS)

Installation

  • Clone the repository git@github.com:burzum/hexagonal-cake.git
  • Go into the folder cd hexagonal-cake
  • Run composer composer install
  • Copy config/app.default.php to config/app.php
  • Configure the database connection in your app.php
  • Point your web server config for the host you are using to the public folder
  • Done

Documentation

Check the docs folder of this repository.

Additional Libs besides CakePHP

Useful links

License

Copyright Florian Krämer

Licensed under the MIT License. Redistributions of the source code included in this repository must retain the copyright notice found in each file.