96qbhy/agora

There is no license information available for the latest version (v0.2.0) of this package.

声网php-SDK

v0.2.0 2019-04-27 08:45 UTC

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

96qbhy/agora
96qbhy@gmail.com