Skip to content

Getting started

Davide Bellettini edited this page Jul 26, 2014 · 9 revisions

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

composer require dbellettini/eventstore-client "@dev"

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 thrown.

Clone this wiki locally