PHP code example of wwwision / dcb-eventstore-esdb
1. Go to this page and download the library: Download wwwision/dcb-eventstore-esdb 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/ */
wwwision / dcb-eventstore-esdb example snippets
use Wwwision\DCBEventStoreESDB\ESDBEventStore;
$eventStore = ESDBEventStore::create(baseUri: 'localhost:3000', apiKey: 'secret');
// ...
$eventStore = $eventStore->with(
eventSource: 'https://domain.tld',
eventTypePrefix: 'tld.domain.'
);