PHP code example of peridot-php / peridot-concurrency
1. Go to this page and download the library: Download peridot-php/peridot-concurrency 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/ */
peridot-php / peridot-concurrency example snippets
use Evenement\EventEmitterInterface;
use Peridot\Concurrency\ConcurrencyPlugin;
return function (EventEmitterInterface $emitter) {
$concurrency = new ConcurrencyPlugin($emitter);
};
$id = getenv('PERIDOT_TEST_TOKEN');
$dbname = "mydb_$id";
//create and seed DB identified by $dbname
//do database things
composer