neos / eventstore-doctrineadapter
Doctrine DBAL based implementation for the neos/eventstore
Package info
github.com/neos/eventstore-doctrineadapter
pkg:composer/neos/eventstore-doctrineadapter
Fund package maintenance!
Requires
- php: ^8.1
- doctrine/dbal: ^3
- neos/eventstore: ^1
- psr/clock: ^1
- webmozart/assert: ^1.10
Requires (Dev)
- brianium/paratest: ^7.2
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10
- roave/security-advisories: dev-latest
- squizlabs/php_codesniffer: ^4.0.x-dev
- dev-main
- 2.0.x-dev
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.0.x-dev
- 1.0.1
- 1.0.0
- 1.0.0-beta3
- 1.0.0-beta2
- 1.0.0-beta1
- dev-bugfix/harden-connection-reconnects
- dev-feature/multi-stream-publish
- dev-task/minimum-php82-compatiblity
- dev-UTCfix
- dev-feature/implement-WithResetInterface
- dev-bugfix/fix-ci
- dev-proposal-for-racecondition-fix
This package is auto-updated.
Last update: 2026-05-17 17:10:21 UTC
README
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 neos/eventstore-doctrineadapter
Create an instance
To create a DoctrineEventStore, an instance of \Doctrine\DBAL\Connection is required.
This can be obtained from a given DSN for example:
use Doctrine\DBAL\DriverManager; $connection = DriverManager::getConnection(['url' => $dsn]);
See Doctrine documentation for more details.
With that, an Event Store instance can be created:
use Neos\EventStore\DoctrineAdapter\DoctrineEventStore; $eventTableName = 'some_namespace_events'; $eventStore = new DoctrineEventStore($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
License
See LICENSE