承接 wwwision/dcb-eventstore-esdb 相关项目开发

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

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

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-22