ddd-php/event
最新稳定版本:1.0
Composer 安装命令:
composer require ddd-php/event
包简介
To implement events in domain driven developement or anyother styles projects with PHP
关键字:
README 文档
README
composer require ddd/event
Usage
Steps are:
- create a domain event (name + past tense verb, example: AccountCreated implements DomainEventInterface)
- publish this event
- distribute events
Somewhere else:
- create a subscriber at an event (exemple: class SendEmailWhenAccountCreatedSubscriber implements DomainEventSubscriber)
- register the subscriber, when event will be distrute the subscriber will handle it and do what it has to do
To Contribut to ddd/Event
Requirements
- docker
- git
Install
- git clone git@github.com:frederic100/event.git
Unit test
bin/phpunit
with Test Developpment Driven (thanks Kent Beck and the others), good practices (thanks R.Martin and the others)
Quality
- phpcs STD12
- phpstan level 9
- coverage 100%
- infection MSI >99%
Quick check with:
./codecheck
Check coverage with:
bin/phpunit --coverage-html var
and view 'var/index.html' with your browser
Check infection with:
bin/infection
and view 'var/infection.html' with your browser
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2023-09-23