Prooph Event Store Client
PHP 7.2 Event Store Client Implementation.
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 https://eventstore.org/docs/getting-started/index.html
To install allegro/php-protobuf:
git clone https://github.com/allegro/php-protobuf cd php-protobuf git checkout v0.12.3 phpize ./configure make sudo make install add "extensions=protobuf.so" 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).
For a short overview please see the annotated Quickstart in the
Run the server with memory database
./run-node.sh --run-projections=all --mem-db
Before next run, restart the server. This way you can always start with a clean server.
$ php ./vendor/bin/bookdown docs/bookdown.json $ php -S 0.0.0.0:8080 -t docs/html/
Then browse to http://localhost:8080/
- Ask questions on Stack Overflow tagged with #prooph.
- File issues at https://github.com/prooph/event-store-client/issues.
- Say hello in the prooph gitter chat.
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.