czhongm / rongcloud
Rong Cloud Server SDK in PHP.
v2.0.2
2017-12-15 09:51 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-08-08 06:03:37 UTC
README
Rong Cloud Server SDK in PHP for Composer.
安装
- 推荐通过 composer 安装,使用 composer.json 声明依赖,或者运行下面的命令:
$ composer require czhongm/rongcloud
- 直接下载安装,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文件.