96qbhy / agora
声网php-SDK
Installs: 1 477
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 2
Forks: 3
Open Issues: 1
Requires
- php: >=7.1
- ext-json: >=1.0
- hanson/foundation-sdk: ^3.0
This package is auto-updated.
Last update: 2024-10-27 21:34:45 UTC
README
声网php-SDK
要求
- composer
- php >=7.1
- ext-json >=1.0
安装
$ composer require 96qbhy/agora
使用
require_once 'vendor/autoload.php'; $config = [ 'debug' => true, 'id' => 'your id', 'secret' => 'your secret', ]; $agora = new \Qbhy\Agora\Agora($config); var_dump($agora->project->all()); // 获取所有项目 var_dump($agora->usage->get('2019-1-21','2019-1-22',['appid'])); // 获取用量 var_dump($agora->kicking_rule->all()); // 获取所有规则 var_dump($agora->token->buildToken('channel','uid')); // 生成token