Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qbhy/agora
声网php-SDK
https://github.com/qbhy/agora
Last synced: about 1 month ago
JSON representation
声网php-SDK
- Host: GitHub
- URL: https://github.com/qbhy/agora
- Owner: qbhy
- License: mit
- Created: 2019-01-22T13:49:07.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-19T09:07:04.000Z (over 4 years ago)
- Last Synced: 2023-12-08T16:06:16.779Z (about 1 year ago)
- Language: PHP
- Homepage: https://docs.agora.io/cn/Interactive%20Broadcast/dashboard_restful_live?platform=All_Platforms
- Size: 17.6 KB
- Stars: 12
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# agora
声网php-SDK## 要求
* composer
* php >=7.1
* ext-json >=1.0## 安装
```bash
$ composer require 96qbhy/agora
```## 使用
```php
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
```[96qbhy/agora](https://github.com/qbhy/agora)
96qbhy@gmail.com