PHP code example of wwwision / dcb-eventstore-umadb
1. Go to this page and download the library: Download wwwision/dcb-eventstore-umadb 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-umadb example snippets
use Wwwision\DCBEventStoreUmaDb\UmaDbEventStore;
$eventStore = UmaDbEventStore::create('http://127.0.0.1:50051');
use Wwwision\DCBEventStoreUmaDb\UmaDbEventStore;
$eventStore = UmaDbEventStore::create(
url: 'http://127.0.0.1:50051',
apiKey: 'secret',
caPath: '/path/to/certificate.pem'
);