wwwision/dcb-eventstore-doctrine

Doctrine DBAL adapter for the Dynamic Consistency Boundary implementation

Maintainers

Package info

github.com/bwaidelich/dcb-eventstore-doctrine

Type:package

pkg:composer/wwwision/dcb-eventstore-doctrine

Fund package maintenance!

bwaidelich

Paypal

Statistics

Installs: 27 900

Dependents: 1

Suggesters: 0

Stars: 3

Open Issues: 2

6.0.0 2026-03-11 10:06 UTC

README

Doctrine DBAL adapter for the Dynamic Consistency Boundary implementation.

Usage

Install via composer:

composer require wwwision/dcb-eventstore-doctrine

Create instance

use Doctrine\DBAL\DriverManager;
use Doctrine\DBAL\Tools\DsnParser;
use Wwwision\DCBEventStoreDoctrine\DoctrineEventStore;

$dsn = 'pdo-mysql://user:password@127.0.0.1:3306/database';
$connection = DriverManager::getConnection((new DsnParser())->parse($dsn));
$eventStore = DoctrineEventStore::create($connection, eventTableName: 'events');

Automatically create required database tables

// ...
$eventStore->setup();

See wwwision/dcb-eventstore for more details and usage examples

Contribution

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

License

See LICENSE