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
- dev-main
- 6.0.0
- 5.1.0
- 5.0.x-dev
- 5.0.0
- 5.0-beta-1
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.0
- 3.1.0
- 3.0.x-dev
- 3.0.2
- 3.0.1
- 3.0.0
- 2.1.0
- 2.0.0
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.x-dev
- 1.0.0
- dev-task/ci-test-2
- dev-localheinz-fix/validate-events
- dev-task/ci-test
- dev-bugfix/validate-events-in-concurrency-test
- dev-task/dbal-4-compatibility
- dev-feature/dbal-2-compatibility
This package is auto-updated.
Last update: 2026-04-03 15:53:47 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