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
Requires
- php: >=8.3
- doctrine/dbal: ^3.6
- 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
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