andythorne / symfony-skeleton-ddd
A minimal Symfony project recommended to create bare bones Domain Driven Designed applications
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=7.2.5
- ext-ctype: *
- ext-iconv: *
- symfony/flex: ^1.3.1
Suggests
- andy-thorne/domain-events-bundle: Adds support for doctrine domain events
Conflicts
Replaces
This package is auto-updated.
Last update: 2024-11-12 06:47:24 UTC
README
Installation
composer create-project andythorne/symfony-skeleton-ddd
Project Architecture
This project sets up symfony with separated application, domain and infrastructure layers:
Application Layer
Each application layer "app" has autoconfigured Controllers under App\<AppName>\Controller\
. In-line with symfony
skeleton, you will need to set up routing for each app. It's suggested to set a path prefix for each app:
# config/routes/annotations.yaml # ACME app acme_controllers: resource: '../../src/apps/Acme/Controller/**/*' type: annotation prefix: /acme
App-level service configuration should be done in config/apps/<appName>.yaml
.
Domain Layer
Each domain under Domain\
has the symfony event dispatcher autoconfigured by default.
Domain-level service configuration should be done in config/domains/<domainName>.yaml
.
Infra Layer
Infra-level service configuration should be done in config/infra/<infraName>.yaml
.