inoovum/neos-eventstore

There is no license information available for the latest version (1.0.1) of this package.

A Neos Flow wrapper for the inoovum® EventStore PHP SDK

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:neos-package

1.0.1 2025-05-27 11:07 UTC

This package is not auto-updated.

Last update: 2025-06-10 14:39:47 UTC


README

A package to enable the use of the inoovum® EventStore with Flow and Neos.

Installation

Just run:

composer require inoovum/neos-eventstore

Configuration

Inoovum:
  Neos:
    EventStore:
      apiUrl: 'https://eventstore.domain.tld'
      apiVersion: 'v1'
      authToken: '21add3d2-6efb-4589-9305-e55925e77c43'

Usage

use Inoovum\Neos\EventStore\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