prooph/httplug-event-store

HTTP EventStore implementation using HTTP API

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

This package is auto-updated.

Last update: 2024-12-17 02:03:07 UTC


README

Build Status Coverage Status Gitter

Overview

Prooph Event Store is capable of persisting event messages that are organized in streams. Prooph\EventStore\EventStore itself is a facade for different persistence adapters (see the list below) and adds event-driven hook points for Prooph\EventStore\Plugin\Plugins which make the Event Store highly customizable.

The httplug event store is an implementation that uses httplug to communicate with the HTTP-API.

Usage

This example uses Guzzle6 httplug adapter

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

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

Support

Contribute

Please feel free to fork and extend existing or add new plugins and send a pull request with your changes! To establish a consistent code quality, please provide unit tests for all your changes and may adapt the documentation.

License

Released under the New BSD License.