Skip to content

Getting started

Davide Bellettini edited this page Aug 22, 2015 · 9 revisions

PHP EventStore client is available on packagist, we recommend you to install it using composer:

composer require dbellettini/eventstore-client "~0.6"

To work out of the box you will also need to require Guzzle 6.x

composer require guzzlehttp/guzzle "~6.0"

Connecting to EventStore

Connecting to EventStore is simple, just create a new EventStore object

use EventStore\EventStore;

$es = new EventStore('http://127.0.0.1:2113');

If the connection fails a EventStore\Exception\ConnectionFailedException will be thrown.

Clone this wiki locally