Download the PHP package betterus/agora-sdk-php without Composer

On this page you can find all versions of the php package betterus/agora-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package agora-sdk-php

Agora RTC Server SDK for PHP

声网(Agora)RTC服务端SDK,基于最新的Agora接口文档封装,提供完整的RTC房间管理、Token生成、事件回调解析和云录制功能。

功能特性

安装

使用Composer安装:

快速开始

1. 初始化SDK

2. 房间创建和Token生成

3. 云录制

4. Webhook事件解析

详细文档

Token生成

基础Token生成

详细权限Token生成

云录制配置

存储配置

录制配置

事件类型

事件代码 事件名称 描述
101 channel_create 频道创建
102 channel_destroy 频道销毁
103 broadcaster_join_channel 主播加入频道
104 broadcaster_leave_channel 主播离开频道
105 audience_join_channel 观众加入频道
106 audience_leave_channel 观众离开频道
111 client_role_change_to_broadcaster 观众变为主播
112 client_role_change_to_audience 主播变为观众

错误处理

配置文件

您可以使用配置文件来管理Agora设置:

运行测试

常见问题

1. Token生成失败

问题: Token生成时出现错误 解决方案:

2. 云录制启动失败

问题: 录制无法启动 解决方案:

3. Webhook签名验证失败

问题: Webhook事件解析时签名验证失败 解决方案:

4. 404错误

问题: 调用录制查询API时返回404 解决方案:

API参考

AgoraRtcSdk类

主要方法

CloudRecordingClient类

录制管理

EventParser类

事件解析

最佳实践

1. Token管理

2. 录制管理

3. 错误处理

4. 安全考虑

系统要求

许可证

MIT License

更新日志

v1.0.0 (2024-06-24)

贡献

欢迎提交Pull Request和Issue。

支持

如有问题,请:

  1. 查看文档和示例代码
  2. 搜索已有的Issue
  3. 提交新的Issue
  4. 联系技术支持

All versions of agora-sdk-php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-json Version *
ext-curl Version *
ext-hash Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package betterus/agora-sdk-php contains the following files

Loading the files please wait ....