thedevopser / symfony-context-bundle
Bundle Symfony pour générer une structure de dossiers contextuels
Installs: 28
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
pkg:composer/thedevopser/symfony-context-bundle
Requires
- php: ^7.2|^8.0
- doctrine/annotations: ^1.13|^2.0
- symfony/console: ^5.0|^6.0|^7.0
- symfony/filesystem: ^5.0|^6.0|^7.0
- symfony/framework-bundle: ^5.0|^6.0|^7.0
Requires (Dev)
- phpunit/phpunit: ^8.5|^9.5
- symfony/phpunit-bridge: ^5.0|^6.0|^7.0
- symfony/test-pack: ^1.0
This package is auto-updated.
Last update: 2025-09-26 12:01:30 UTC
README
🇫🇷 Français
Un bundle Symfony qui aide à générer une structure de dossiers pour une architecture DDD (Domain Driven Design).
Installation 📦
composer require thedevopser/symfony-context-bundle
Utilisation 🚀
La commande suivante permet de générer un nouveau contexte :
php bin/console thedevopser:generate:context MonContexte
Cette commande va créer la structure de dossiers suivante :
MonContexte/
├── Domain/
│ ├── Entity/
│ └── Interfaces/
├── Application/
│ ├── Command/
│ ├── Query/
│ ├── Event/
│ └── Service/
├── Infrastructure/
│ ├── Doctrine/
│ └── Persistence/
├── Presenter/
│ ├── Controller/
│ ├── Form/
│ └── Voter/
└── README.md
Structure 🏛️
Domain/: Le cœur métierEntity/: Les entités et value objectsInterfaces/: Les interfaces des repositories
Application/: La couche applicationCommand/: Les commandes et leurs handlersQuery/: Les requêtes et leurs handlersEvent/: Les gestionnaires d'événementsService/: Les services applicatifs
Infrastructure/: La couche infrastructureDoctrine/: L'implémentation des repositoriesPersistence/: Configuration de la persistance
Presenter/: La couche présentationController/: Les contrôleursForm/: Les types de formulairesVoter/: Les voters
🇬🇧 English
A Symfony bundle that helps generate a folder structure for DDD (Domain Driven Design) architecture.
Installation 📦
composer require thedevopser/symfony-context-bundle
Usage 🚀
The following command generates a new context:
php bin/console thedevopser:generate:context MyContext
This command will create the following folder structure:
MyContext/
├── Domain/
│ ├── Entity/
│ └── Interfaces/
├── Application/
│ ├── Command/
│ ├── Query/
│ ├── Event/
│ └── Service/
├── Infrastructure/
│ ├── Doctrine/
│ └── Persistence/
├── Presenter/
│ ├── Controller/
│ ├── Form/
│ └── Voter/
└── README.md
Structure 🏛️
Domain/: The business coreEntity/: Entities and value objectsInterfaces/: Repository interfaces
Application/: The application layerCommand/: Commands and their handlersQuery/: Queries and their handlersEvent/: Event handlersService/: Application services
Infrastructure/: The infrastructure layerDoctrine/: Repository implementationsPersistence/: Persistence configuration
Presenter/: The presentation layerController/: ControllersForm/: Form typesVoter/: Voters
Tests 🧪
vendor/bin/phpunit
Contributing 🤝
Pull requests are welcome! | Les Pull Requests sont les bienvenues !
License 📄
MIT