czhongm / rongcloud
PHP版本的 Rong Cloud 服务器 SDK。
v2.0.2
2017-12-15 09:51 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-09-20 02:11:34 UTC
README
PHP 版本的 Rong Cloud 服务器 SDK,用于 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');; ...
联系我们
代码许可
MIT 许可协议 (MIT)。详情见 许可文件。