wwwision/dcb-eventstore-esdb
最新稳定版本:1.0.0
Composer 安装命令:
composer require wwwision/dcb-eventstore-esdb
包简介
EventSourcing Database adapter for the Dynamic Consistency Boundary implementation
README 文档
README
EventSourcing Database adapter for the Dynamic Consistency Boundary implementation.
Usage
Installation
Install via composer:
composer require wwwision/dcb-eventstore-esdb
Create instance
use Wwwision\DCBEventStoreESDB\ESDBEventStore; $eventStore = ESDBEventStore::create(baseUri: 'localhost:3000', apiKey: 'secret');
Specify custom event source / type prefix
EventSourcing Database expects each event to have a source specified. Furthermore, event types have to be namespaced.
By default, the eventSource is set to "https://dcb.events" and the event type is prefixed with "events.dcb." to be compliant.
Those values are removed when reading events via the ESDBEventStore client, so the values are not really important.
However, they can be changed via the with() function:
// ... $eventStore = $eventStore->with( eventSource: 'https://domain.tld', eventTypePrefix: 'tld.domain.' );
See wwwision/dcb-eventstore for more details and usage examples
Contribution
Contributions in the form of issues or pull requests are highly appreciated
License
See LICENSE
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-08-22