Documentation
Everything you need to know about Genesis DB.
PHP SDK
Official Genesis DB Client for PHP

Getting Started

This SDK gives you seamless access to Genesis DB from any PHP 8.1+ environment. Stream events, commit new ones, observe events and query events - all over an simple HTTP interface. Fully type-safe, zero boilerplate, and CloudEvents-native. This SDK gets out of your way and lets you focus on the event-driven logic that matters.

Installation

To install the SDK, run the following command:

Neos Flow Wrapper

To use the SDK with Neos Flow, you can use the following wrapper. For more information, see the this repository.

Usage

To use the SDK, you need to create a client and connect to the Genesis DB instance. The client will handle the connection and the authentication.

Instantiate the client

Stream Events

Stream Events from lower bound

Stream Events with latest by event type

Commit Events

Commit events with preconditions

Usage of referenced data (GDPR)

Deleting referenced data (GDPR)

Observe Events

Observe Events from lower bound (Message queue)

Query Events

Health Checks

Examples