thedevopser/symfony-context-bundle
最新稳定版本:V1.0.1
Composer 安装命令:
composer require thedevopser/symfony-context-bundle
包简介
Bundle Symfony pour générer une structure de dossiers contextuels
README 文档
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
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-25