lawmil / rongcloud
PHP 的 Rong Cloud 服务器 SDK。
1.0.2
2019-04-22 07:04 UTC
Requires
- php: >=7
This package is auto-updated.
Last update: 2024-09-22 19:07:58 UTC
README
PHP 的 Rong Cloud 服务器 SDK for Composer。
API 文档
使用教程
- 请参考 example,上面提供了所有 API 接口的调用示例。
安装
- 推荐通过 composer 安装,使用 composer.json 声明依赖,或者运行下面的命令:
$ composer require lawmil/rongcloud
- 直接下载安装,SDK 没有依赖其他第三方库,可直接下载引入使用。
使用方法
$appKey = 'appKey'; $appSecret = 'appSecret'; ... $rongCloud = new RongCloud($appKey,$appSecret); $user = [ 'id'=> '用户id', 'name'=> '用户名称', 'portrait'=> '用户头像' ]; $token = $rongCloud->getUser()->register($user); ...
代码许可
MIT 许可证 (MIT)。详情见 许可文件。