docker-compose up -d
enter container fpm and execute:
composer install
This project is sample stack Domain Driven Design (DDD)
layers:
View layer:
- CLI: ommand ci for console (migrations, etc..)
- Api: Endpoint for http request with api rest
- Twig: template engine and controller to call to use case application layer
The use case is the core of the application.
The most important layer is the domain layer. In this layer we have the entities, services and repositories used for application layer.
The infrastructure layer is the layer that contains the repositories implementations.
Replicate structure of project with tests
The most important is test in application layer and domain layer. User phpunit for unitary and behat for functional test.