prooph/httplug-event-store

基于 HTTP API 的 HTTP EventStore 实现

dev-master 2018-11-02 15:34 UTC

This package is auto-updated.

Last update: 2024-09-17 01:28:29 UTC


README

Build Status Coverage Status Gitter

概览

Prooph Event Store 可以持久化以流形式组织的消息。 Prooph\EventStore\EventStore 本身是不同持久化适配器(见以下列表)的代理,并为 Prooph\EventStore\Plugin\Plugin 添加了事件驱动的钩子点,这使得 Event Store 可以高度定制。

httplug event store 是一个使用 httplug 与 HTTP-API 通信的实现。

使用方法

此示例使用 Guzzle6 httplug 适配器

$httplug = new \Http\Adapter\Guzzle6\Client();
$eventStore = new \Prooph\EventStore\Httplug($httpPlug, $options);

$streamEvents =$eventStore->load(new StreamName('test-stream'));

支持

贡献

请随时叉库并扩展现有功能或添加新插件,并将更改的 pull request 发送过来!为了建立一致的代码质量,请为所有更改提供单元测试,并可能更新文档。

许可证

New BSD 许可证 下发布。