t4web / domain
领域驱动设计(DDD)实现。
1.2.0
2019-05-13 12:44 UTC
Requires
- php: >=5.5.0
- t4web/domain-interface: ~1.1.0
Requires (Dev)
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ^2.3
Suggests
- t4web/infrastructure: Infrastructure implementation
README
由 t4web\domain-interface 实现的领域驱动设计(DDD)。
内容
安装
将此项目添加到您的 composer.json 中
"require": { "t4web/domain": "~1.1.0" }
现在运行以下命令让 composer 下载 Domain
$ php composer.phar update
快速开始
您可以在控制器中使用服务 Creator
、Deleter
和 Updater
来处理 DDD 实体。您可以实现 Domain\Infrastructure
来使用这些服务或注入 t4web\infrastructure