wwwision/dcb-eventstore-doctrine

Doctrine DBAL adapter for the Dynamic Consistency Boundary implementation

Fund package maintenance!
bwaidelich
Paypal

Installs: 25 116

Dependents: 1

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 1

Open Issues: 2

Type:package

pkg:composer/wwwision/dcb-eventstore-doctrine

5.0.0 2025-12-23 14:54 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