genesisdb / neos-genesisdb
A Neos Flow wrapper for the Genesis DB PHP SDK
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:neos-package
Requires
- genesisdb/client-sdk: ^0.0
- neos/flow: ^8.0 || ^8.1 || ^8.2 || ^8.3
This package is not auto-updated.
Last update: 2025-06-12 15:20:52 UTC
README
A package to enable the use of Genesis DB with Flow and Neos.
Installation
Just run:
composer require genesisdb/neos-genesisdb
Configuration
GenesisDB: Neos: GenesisDB: apiUrl: 'https://genesisdb.domain.tld' apiVersion: 'v1' authToken: '21add3d2-6efb-4589-9305-e55925e77c43'
Usage
use GenesisDB\Neos\GenesisDB\Service\EventStoreService; #[Flow\Inject] protected EventStoreService $eventStoreService; // Use the EventStore methods // Stream events (array of CloudEvents) $events = $this->eventStoreService->streamEvents('/customer'); // Commit events $events = [ [ 'subject' => '/customer', 'type' => 'added', 'data' => [ 'firstName' => 'Bruce', 'lastName' => 'Wayne', 'emailAddress' => 'bruce.wayne@enterprise.wayne' ] ], [ 'subject' => '/customer', 'type' => 'added', 'data' => [ 'firstName' => 'Alfred', 'lastName' => 'Pennyworth', 'emailAddress' => 'alfred.pennyworth@enterprise.wayne' ] ], [ 'subject' => '/customer/fed2902d-0135-460d-8605-263a06308448', 'type' => 'personalDataChanged', 'data' => [ 'firstName' => 'Angus', 'lastName' => 'MacGyer', 'emailAddress' => 'angus.macgyer@phoenix.foundation' ] ] ]; $this->eventStoreService->commitEvents($events); // Use the EventStore status methods $this->eventStoreService->audit(); $this->eventStoreService->ping();
Author
- E-Mail: mail@genesisdb.io
- URL: https://www.genesisdb.io