PHPackages                             wangyi-live/netease - 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. wangyi-live/netease

ActiveLibrary

wangyi-live/netease
===================

网易云直播的服务端API

1.0.0(8y ago)513MITPHPPHP &gt;=7.0

Since Apr 12Pushed 2y agoCompare

[ Source](https://github.com/liutongke/netease-live)[ Packagist](https://packagist.org/packages/wangyi-live/netease)[ RSS](/packages/wangyi-live-netease/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

网易云直播
=====

[](#网易云直播)

Installation 使用 Composer 安装 在项目中的 composer.json 文件中添加依赖：

```
“require”: {
    "wangyi-live/netease": "^1.0"
},
```

执行 $ composer update 进行安装。 首先引入：

```
use netease\app\Netease;
$Netease = new Netease(AppSecret,AppSecret);
```

//创建频道

```
$res = $Netease->liveChannelAdd(频道名称, 频道类型（0:rtmp）);
```

//修改频道

```
$res = $Netease->liveChannelUpdate(频道名,频道ID,频道类型 ( 0 : rtmp));
```

//删除频道

```
$res = $Netease->liveChannelDel(频道ID);
```

//获取频道状态

```
$res = $Netease->liveChannelGet(频道ID);
```

//获取频道列表

```
$res = $Netease->channel_list();
```

//重新获取推流地址

```
$res = $Netease->channel_reset(频道ID);
```

//设置频道为录制状态

```
$res = $Netease->channel_setRecord([
    'cid' => 频道ID,
    'needRecord' => 1-开启录制； 0-关闭录制,
    'format' => 1-flv； 0-mp4,
    'duration' => 录制切片时长(分钟)，5~120分钟
]);
```

//禁用频道

```
$res = $Netease->channel_pause(频道ID);
```

//恢复频道

```
$res = $Netease->channel_resume(频道ID);
```

//批量禁用频道

```
$res = $Netease->channel_pauselist([
    频道ID
]);
```

//批量恢复频道

```
$res = $Netease->channel_resumelist([
    频道ID
]);
```

//获取录制视频文件列表

```
$res = $Netease->channel_videolist(频道ID);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2954d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a3ac5a0547f8d228fc0fa895b9ca4ad53a60d65a0d578577b1950e67e5a0f7f9?d=identicon)[keke](/maintainers/keke)

---

Top Contributors

[![liutongke](https://avatars.githubusercontent.com/u/27773068?v=4)](https://github.com/liutongke "liutongke (28 commits)")

---

Tags

livestreamphplaravelliveneteasewangyi

### Embed Badge

![Health badge](/badges/wangyi-live-netease/health.svg)

```
[![Health](https://phpackages.com/badges/wangyi-live-netease/health.svg)](https://phpackages.com/packages/wangyi-live-netease)
```

###  Alternatives

[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

394388.0k5](/packages/rtconner-laravel-likeable)[hemp/presenter

Easy Model Presenters in Laravel

247592.6k1](/packages/hemp-presenter)[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)[aminyazdanpanah/php-shaka

Shaka PHP is a library that uses Shaka Packager for DASH and HLS packaging and encryption, supporting Common Encryption for Widevine and other DRM Systems.

939.0k1](/packages/aminyazdanpanah-php-shaka)

PHPackages © 2026

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