PHP code example of pianqifei / laravel-tencent-cloud-sdk-im
1. Go to this page and download the library: Download pianqifei/laravel-tencent-cloud-sdk-im 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/ */
pianqifei / laravel-tencent-cloud-sdk-im example snippets
$app->register(Pqf\TencentCloudSdkIm\ServiceProvider::class);
use Pqf\TencentCloudSdkIm\TencentCloudSdkIm;
// 获取 user sig
TencentCloudSdkIm::GenUserSig('user_id');
// 帐号
$account = TencentCloudSdkIm::Account();
// 查询帐号
$account->check('user_id');
// ...
bash
php artisan vendor:publish --tag=laravel-tencentsdk-im
bash
cp ./vendor/pianqifei/laravel-tencent-cloud-sdk-im/src/config.php ./config/tencentsdkim.php