cccdl / agora_sdk
声网RTC SDK for PHP
Installs: 2 051
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-10-29 06:12:56 UTC
README
主要新特性
- 简化使用方法
- 调用简单
- 可执行单元测试
- github内的包都无法自定义过期时间,本包可以随意设置时间
- 持续更新中...
更新日志
- 1.0.0 生成加入频道所需要的token
安装
运行环境要求PHP7.1+。
快速使用
在您开始之前,您需要注册声网并获取您的证书和appid。
使用
<?php use cccdl\agora_sdk\Token; $config = [ 'appid' => '请填写您的AppId', 'appCertificate' => '请填写您的声网证书', ] $RtcTokenBuilder = new RtcTokenBuilder($config); $token = $RtcTokenBuilder->buildTokenWithUid('test', {此处填写整形uid}, {过期时间秒数});
接口对应文件
文档
问题
提交 Issue,不符合指南的问题可能会立即关闭。
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
License
MIT