wwwision / dcb-eventstore-doctrine
Doctrine DBAL adapter for the Dynamic Consistency Boundary implementation
Package info
github.com/bwaidelich/dcb-eventstore-doctrine
Type:package
pkg:composer/wwwision/dcb-eventstore-doctrine
6.0.0
2026-03-11 10:06 UTC
Requires
- php: >=8.3
- doctrine/dbal: ^4
- psr/clock: ^1
- ramsey/uuid: ^4.7
- webmozart/assert: ^1.11
- wwwision/dcb-eventstore: ^5
Requires (Dev)
- brianium/paratest: ^7
- friendsofphp/php-cs-fixer: ^3.88
- phpstan/phpstan: ^2
- phpunit/phpunit: ^11
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2026-03-11 10:07:02 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