1. Go to this page and download the library: Download qingze-lab/openim-sdk-php 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/ */
qingze-lab / openim-sdk-php example snippets
use QingzeLab\OpenIM\Client\OpenIMClient;
use QingzeLab\OpenIM\Config\OpenIMConfig;
use QingzeLab\OpenIM\Message\Content\TextContent;
use QingzeLab\OpenIM\Message\ContentType;
use QingzeLab\OpenIM\Tests\Support\ArrayCache;
01',
'u_002',
ContentType::TEXT,
(new TextContent())->setContent('hi')->toArray(),
['senderPlatformID' => 1]
);