1. Go to this page and download the library: Download metko/galera 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/ */
metko / galera example snippets
// Metko\Galera\Galerable;
use Galerable;
Galera::participants($user1, $user2)->make();
*// Or pass an array of multiple user*
Galera::addParticipants([1,2,3,'10'])->make();
Galera::conversation($id);
// Or with the messages
Galera::conversation($id, true);