定制 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
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固