PHP 7.2 Event Store Client Implementation
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Prooph Event Store Client

PHP 7.2 Event Store Client Implementation.

Build Status Coverage Status Gitter


Prooph Event Store Client supports async non-blocking communication via TCP to EventStore. In the future, there will be also a server implementation written in pure PHP using Postgres (maybe also MySQL) as backend.

Asynchronous operations are done via Amp and sync operation are also supported.

You need to allegro/php-protobuf PHP extension.

The protobuf extension from Google will not work, because it doesn't support proto2, only proto3.

It's also recommended to install uv.


You can install prooph/event-store-client via composer by adding "prooph/event-store-client": "dev-master" as requirement to your composer.json.

To install EventStore Server, check the manual at

To install allegro/php-protobuf:

git clone
cd php-protobuf
git checkout v0.12.3
sudo make install
add "" to your php.ini

In the docker-folder you'll find three different docker-compose setups (single node, 3-node-cluster and 3-node-dns-cluster).

Quick Start

For a short overview please see the annotated Quickstart in the examples folder.

Unit tests

Run the server with memory database

./ --run-projections=all --mem-db

Before next run, restart the server. This way you can always start with a clean server.


Documentation is in the doc tree, and can be compiled using bookdown.

$ php ./vendor/bin/bookdown docs/bookdown.json
$ php -S -t docs/html/

Then browse to http://localhost:8080/



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.


Released under the New BSD License.