Skip to content

Database Adapter implementation for the neos/eventstore package for Laravel Eloquent

License

Notifications You must be signed in to change notification settings

sandstorm/eventstore-laraveladapter

This branch is 8 commits ahead of neos/eventstore-doctrineadapter:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

34b31c9 · May 4, 2025

History

68 Commits
May 4, 2025
May 4, 2025
May 4, 2025
May 4, 2025
Nov 7, 2023
May 4, 2025
May 4, 2025
May 4, 2025
Nov 7, 2023
Mar 22, 2024
Nov 7, 2023

Repository files navigation

Laravel DB adapter for the neos/eventstore package

Database Adapter implementation for the neos/eventstore package.

Note Currently this package supports MySQL (including MariaDB), PostgreSQL and SQLite.

Usage

Install via composer:

composer require sandstorm/eventstore-laraveladapter

Create an instance

To create a LaravelEventStore, an instance of \Illuminate\Database\Connection is required. This can be obtained from a given DSN for example:

With that, an Event Store instance can be created:

use Sandstorm\EventStore\LaravelAdapter\LaravelEventStore;

$eventTableName = 'some_namespace_events';
$eventStore = new LaravelEventStore($connection, $eventTableName);

See README of the neos/eventstore package for details on how to write and read events.

Contribution

Contributions in the form of issues, pull requests or discussions are highly appreciated

Running Tests

# in this directory:
composer install
docker compose up -d
DB_DRIVER=mysql composer test

License

See LICENSE

About

Database Adapter implementation for the neos/eventstore package for Laravel Eloquent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%