prooph / httplug-event-store
基于 HTTP API 的 HTTP EventStore 实现
dev-master
2018-11-02 15:34 UTC
Requires
- php: ^7.1
- prooph/event-store: ^7.2
Requires (Dev)
- php-http/guzzle6-adapter: ^1.1.1
- phpspec/prophecy: ^1.7
- phpunit/phpunit: ^6.0
- prooph/php-cs-fixer-config: ^0.3
- psr/container: ^1.0
- sandrokeil/interop-config: ^2.1
- satooshi/php-coveralls: ^1.0
Conflicts
This package is auto-updated.
Last update: 2024-09-17 01:28:29 UTC
README
概览
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'));
支持
- 在 Stack Overflow 标记为 #prooph 的问题上提问。
- 在 https://github.com/prooph/event-store-http-api/issues 上提交问题。
- 在 prooph gitter 聊天室打招呼。
贡献
请随时叉库并扩展现有功能或添加新插件,并将更改的 pull request 发送过来!为了建立一致的代码质量,请为所有更改提供单元测试,并可能更新文档。
许可证
在 New BSD 许可证 下发布。