承接 thedevopser/symfony-context-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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 | 🇬🇧 English

🇫🇷 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étier
    • Entity/ : Les entités et value objects
    • Interfaces/ : Les interfaces des repositories
  • Application/ : La couche application
    • Command/ : Les commandes et leurs handlers
    • Query/ : Les requêtes et leurs handlers
    • Event/ : Les gestionnaires d'événements
    • Service/ : Les services applicatifs
  • Infrastructure/ : La couche infrastructure
    • Doctrine/ : L'implémentation des repositories
    • Persistence/ : Configuration de la persistance
  • Presenter/ : La couche présentation
    • Controller/ : Les contrôleurs
    • Form/ : Les types de formulaires
    • Voter/ : 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 core
    • Entity/: Entities and value objects
    • Interfaces/: Repository interfaces
  • Application/: The application layer
    • Command/: Commands and their handlers
    • Query/: Queries and their handlers
    • Event/: Event handlers
    • Service/: Application services
  • Infrastructure/: The infrastructure layer
    • Doctrine/: Repository implementations
    • Persistence/: Persistence configuration
  • Presenter/: The presentation layer
    • Controller/: Controllers
    • Form/: Form types
    • Voter/: 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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-25