Rong Cloud Server SDK in PHP for Composer.
- 推荐通过 composer 安装,使用 composer.json 声明依赖,或者运行下面的命令:
$ composer require rongcloud/php-sdk
- 直接下载安装,SDK 没有依赖其他第三方库,可直接下载引入使用。
include 'RongCloud.php';
$appKey = 'appKey';
$appSecret = 'appSecret';
$jsonPath = "jsonsource/";
...
$rongCloud = new \RongCloud\RongCloud($appKey,$appSecret);
$token = $rongCloud->user()->getToken('userId1', 'username', 'http://www.rongcloud.cn/images/logo.png');;
...
The MIT License (MIT).详情见 License文件.