1. Go to this page and download the library: Download serafim/gitter-api 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/ */
serafim / gitter-api example snippets
use Gitter\Client;
$client = new Client($token);
// OR
$client = new Client($token, $logger); // $logger are instance of \Psr\Log\LoggerInterface
// ... SOME ACTIONS ...
$client->connect(); // Locks current runtime and starts an EventLoop (for streaming requests)