PHPackages                             oiuv/talkfun-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. oiuv/talkfun-sdk

ActiveLibrary[API Development](/categories/api)

oiuv/talkfun-sdk
================

欢拓云直播WEB API

v1.6.2(4y ago)2573MITPHPPHP &gt;=5.6

Since May 30Pushed 4y ago1 watchersCompare

[ Source](https://github.com/oiuv/talkfun-sdk)[ Packagist](https://packagist.org/packages/oiuv/talkfun-sdk)[ RSS](/packages/oiuv-talkfun-sdk/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (7)Dependencies (2)Versions (9)Used By (0)

欢拓云直播WEB API
============

[](#欢拓云直播web-api)

[![](https://camo.githubusercontent.com/4463a7a59f86c195158e513999b3115c46c1634f02e15264bb66891455bbb651/68747470733a2f2f6f70656e2e74616c6b2d66756e2e636f6d2f646f63732f676574737461727456322f696d6167652f6c6f676f2e706e67)](https://camo.githubusercontent.com/4463a7a59f86c195158e513999b3115c46c1634f02e15264bb66891455bbb651/68747470733a2f2f6f70656e2e74616c6b2d66756e2e636f6d2f646f63732f676574737461727456322f696d6167652f6c6f676f2e706e67)

安装
--

[](#安装)

```
composer require oiuv/talkfun-sdk

```

使用
--

[](#使用)

### 通过composer自动加载

[](#通过composer自动加载)

```
require __DIR__ . '/vendor/autoload.php';

use Oiuv\TalkFunSdk\MTCloud;

$config = [
    'openID' => '***',
    'openToken' => '***',
];

$MTCloud = new MTCloud($config);

// 获取房间列表
$res = $MTCloud->roomList();
```

### 在Laravel框架中使用

[](#在laravel框架中使用)

在`.env`中增加以下配置：

```
TALKFUN_OPENID=XXXXX
TALKFUN_TOKEN=XXXXXX

```

在`config/services.php`中增加以下配置：

```
    'talkfun' => [
        'openID' => env('TALKFUN_OPENID'),
        'openToken' => env('TALKFUN_TOKEN'),
    ],
```

方法参数注入的方式调用:

```
use Oiuv\TalkFunSdk\MTCloud;

public function show(MTCloud $talkfun)
{
    // 获取房间列表
    return $talkfun->roomList();
}
```

使用Facade(名称：`TalkFun`)的方式调用

```
public function show()
{
    // 获取房间列表
    return TalkFun::roomList();
}
```

### 示例

[](#示例)

```
// 获取房间列表
$res = $MTCloud->roomList();

// 获取剪辑列表
$res = $MTCloud->clipList();

// 获取最新的几个直播记录
$res = $MTCloud->liveGetLast();

// 根据房间ID获取主播登录地址
$res = $MTCloud->roomLogin($roomid);

// 获取一个直播专辑
$res = $MTCloud->albumGet($albumid);

// 获取剪辑信息
$res = $MTCloud->clipGet($clipid);

// 获取某场直播的记录信息及回放地址
$res = $MTCloud->liveGet($liveid);

// 根据直播id获取回放视频
$res = $MTCloud->livePlaybackVideo($liveid);
```

> 更多方法请见接口文档：

接口文档
----

[](#接口文档)

- [欢拓云直播服务端API方法列表](https://api.oiuv.cn/MTCloud)
- [欢拓云直播服务端API接口文档](https://open.talk-fun.com/docs/getstartV2/api/backend_api.html)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 92.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~188 days

Recently: every ~200 days

Total

8

Last Release

1631d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13300261?v=4)[噢哎哟喂](/maintainers/oiuv)[@oiuv](https://github.com/oiuv)

---

Top Contributors

[![oiuv](https://avatars.githubusercontent.com/u/13300261?v=4)](https://github.com/oiuv "oiuv (25 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (2 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/oiuv-talkfun-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/oiuv-talkfun-sdk/health.svg)](https://phpackages.com/packages/oiuv-talkfun-sdk)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
