PHP code example of neos / eventstore-doctrineadapter
1. Go to this page and download the library: Download neos/eventstore-doctrineadapter library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
neos / eventstore-doctrineadapter example snippets
use Doctrine\DBAL\DriverManager;
$connection = DriverManager::getConnection(['url' => $dsn]);
use Neos\EventStore\DoctrineAdapter\DoctrineEventStore;
$eventTableName = 'some_namespace_events';
$eventStore = new DoctrineEventStore($connection, $eventTableName);