1. Go to this page and download the library: Download get-stream/stream-chat 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/ */
get-stream / stream-chat example snippets
$client = new GetStream\StreamChat\Client("<api-key>", "<api-secret>");
$token = $client->createToken("bob-1");
// with an expiration time
$expiration = (new DateTime())->getTimestamp() + 3600;
$token = $client->createToken("bob-1", $expiration);