PHPackages                             flyrory/qiniu-lb-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. flyrory/qiniu-lb-sdk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

flyrory/qiniu-lb-sdk
====================

基于七牛官方sdk的流管理laravel包

v1.0.5(5y ago)248MITPHPPHP &gt;=7.0

Since Jul 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/flyrory/qiniu-lb-sdk)[ Packagist](https://packagist.org/packages/flyrory/qiniu-lb-sdk)[ RSS](/packages/flyrory-qiniu-lb-sdk/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (7)Used By (0)

 qiniu-lb-sdk
==============

[](#-qiniu-lb-sdk-)

基于官方sdk封装.

Installing
----------

[](#installing)

```
$ composer require flyrory/qiniu-lb-sdk -vvv
```

Usage
-----

[](#usage)

> 生成配置文件

```
php artisan vendor:publish

```

> 引入包

```
use Flyrory\QiniuLbSdk\QiniuLb;

```

> 使用简介

```
# 创建流
$result = app(QiniuLb::class)->createStream($streamKey);

# 获取流信息
$result = app(QiniuLb::class)->getStreamInfo($streamKey);

# 获取流列表
$result = app(QiniuLb::class)->getStreamList($streamKey, $limit, $offset);

# 获取正在直播的流列表

$result = app(QiniuLb::class)->getLiveStreamList($streamKey, $limit, $offset);

# 批量查询流直播信息

$result = app(QiniuLb::class)->getBatchLiveStreamList($streamKeys);

# 查询流的直播状态
$result = app(QiniuLb::class)->getLiveStatus($streamKey);

# 禁用流

$result = app(QiniuLb::class)->disableStream($streamKey);

# 启用流

$result = app(QiniuLb::class)->enableStream($streamKey);

# 保存直播数据

$result = app(QiniuLb::class)->saveLive($streamKey, $options);

# 查询推流历史记录

$result = app(QiniuLb::class)->getHistoryActivity($streamKey, $start, $end)；

# 保存直播截图

$result = app(QiniuLb::class)->saveSnapshot($streamKey, $options);

# 更改流的实时转码规格

$result = app(QiniuLb::class)->editConverts($streamKey, $options);

# 生成推流地址

$result = app(QiniuLb::class)->getRtmpPublishUrl($streamKey, $expireAfterSeconds);

# 生成rtmp播放地址

$result = app(QiniuLb::class)->getRtmpPlayUrl($streamKey);

# 生成hls（m3u8）播放地址

$result = app(QiniuLb::class)->getHlsPlayUrl($streamKey);

# 生成hdl(flv) 播放地址

$result = app(QiniuLb::class)->getHdlPlayUrl($streamKey);

# 生成直播封面截图地址

$result = app(QiniuLb::class)->getSnapshotPlayURL($streamKey);

```

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/flyrory/qiniu-lb-sdk/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/flyrory/qiniu-lb-sdk/issues).
3. 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
-------

[](#license)

MIT

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~4 days

Total

6

Last Release

2159d ago

### Community

Maintainers

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

---

Top Contributors

[![flyrory](https://avatars.githubusercontent.com/u/5449912?v=4)](https://github.com/flyrory "flyrory (7 commits)")

### Embed Badge

![Health badge](/badges/flyrory-qiniu-lb-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/flyrory-qiniu-lb-sdk/health.svg)](https://phpackages.com/packages/flyrory-qiniu-lb-sdk)
```

PHPackages © 2026

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