2017 © Pedro Peláez
 

library http-event-store

Client for communication with event store http api

image

lzakrzewski/http-event-store

Client for communication with event store http api

  • Wednesday, June 8, 2016
  • by lzakrzewski
  • Repository
  • 0 Watchers
  • 1 Stars
  • 55 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

HttpEventStore

Build Status Latest Unstable Version Total Downloads, (*1)

Client for communication with Event Store HTTP API. Read more about Event Store HTTP API http://docs.geteventstore.com/http-api/latest., (*2)

This library is independent part of es-sandbox., (*3)

Requirements

  "require": {
    "php": ">=5.6",
    "guzzlehttp/guzzle": "~6.0",
    "ramsey/uuid" : "~3.0"
  }

Installation

Require the library with composer:, (*4)

composer require lzakrzewski/http-event-store

Usage

Example

$streamId = Uuid::uuid4()->toString();

$eventStore = \HttpEventStore\Http\HttpEventStore::create('127.0.0.1', '2113');
$event1     = new \HttpEventStore\WritableEvent('productWasAddedToBasket', ['productId' => 'product1', 'name' => 'Teapot']);
$event2     = new \HttpEventStore\WritableEvent('productWasRemovedFromBasket', ['productId' => 'product1']);

// Writing to a Stream
$eventStore->writeStream($streamId, [$event1, $event2]);

// Reading from a Stream
$events = $eventStore->readStream($streamId);

 // Your logic with events there...

The Versions

08/06 2016

dev-master

9999999-dev

Client for communication with event store http api

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar lzakrzewski

08/06 2016

0.0.5

0.0.5.0

Client for communication with event store http api

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar lzakrzewski

07/06 2016

0.0.4

0.0.4.0

Client for communication with event store http api

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar lzakrzewski

07/06 2016

0.0.3

0.0.3.0

Client for communication with event store http api

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar lzakrzewski

06/06 2016

0.0.2

0.0.2.0

Client for communication with event store http api

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar lzakrzewski

06/06 2016

0.0.1

0.0.1.0

Client for communication with event store http api

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar lzakrzewski