PHPackages                             pinweb/qnlive - 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. pinweb/qnlive

ActiveLibrary[API Development](/categories/api)

pinweb/qnlive
=============

Qiniu Live for Laravel

1.0.1(5y ago)04MITPHP

Since Jul 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pinweb/qnlive)[ Packagist](https://packagist.org/packages/pinweb/qnlive)[ Docs](https://github.com/pinweb/qnlive)[ RSS](/packages/pinweb-qnlive/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Qnlive
======

[](#qnlive)

[![Latest Version on Packagist](https://camo.githubusercontent.com/79969a5a1cb30f170c5a53ee871328030e0d17d14c8bfc8c3e4401b57fe78edf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70696e7765622f716e6c6976652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pinweb/qnlive)[![Total Downloads](https://camo.githubusercontent.com/3f2cc7bc85989971df8a4c49ff81ecc2b813ad45174a7adadd4d1c5923a015ab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70696e7765622f716e6c6976652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pinweb/qnlive)[![Build Status](https://camo.githubusercontent.com/6a9fb80efe88a69568e0ed1afd65bad61b8acc02e17358766a54633280b87953/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f70696e7765622f716e6c6976652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/pinweb/qnlive)[![StyleCI](https://camo.githubusercontent.com/cb13a877afd1dbe223c631789c3f922d3ace958fdb334a9cce9b26afefbc2ebd/68747470733a2f2f7374796c6563692e696f2f7265706f732f31323334353637382f736869656c64)](https://styleci.io/repos/12345678)

基于七牛直播官方 SDK 封装的 Laravel 扩展

安装
--

[](#安装)

#### Via Composer

[](#via-composer)

```
$ composer require pili-engineering/pili-sdk-php.v2:dev-master
$ composer require pinweb/qnlive
```

#### 生成配置文件

[](#生成配置文件)

```
$ php artisan vendor:publish --provider="Pinweb\Qnlive\QnliveServiceProvider"
```

使用
--

[](#使用)

#### 引用

[](#引用)

```
use Pinweb\Qnlive;
```

#### 创建流

[](#创建流)

```
Qnlive::hub()->create($stream);
```

#### 流信息

[](#流信息)

```
Qnlive::hub()->stream($stream)->info();
```

#### 启用流

[](#启用流)

```
Qnlive::hub()->stream($stream)->enable();
```

#### 禁用流

[](#禁用流)

```
Qnlive::hub()->stream($stream)->disable();
```

#### 获取推流地址

[](#获取推流地址)

```
Qnlive::pushUrl($stream);
```

#### 获取播放地址

[](#获取播放地址)

```
Qnlive::playUrl($stream);
```

更多使用方法参见[官方 SDK](https://github.com/pili-engineering/pili-sdk-php.v2)

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [atan](https://github.com/pinweb)
- [All Contributors](../../contributors)

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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 ~0 days

Total

2

Last Release

2164d ago

### Community

Maintainers

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

---

Top Contributors

[![tanshiqi](https://avatars.githubusercontent.com/u/1159607?v=4)](https://github.com/tanshiqi "tanshiqi (5 commits)")

---

Tags

laravellivestreamqiniuqiniu-sdklaravelQnlive

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pinweb-qnlive/health.svg)

```
[![Health](https://phpackages.com/badges/pinweb-qnlive/health.svg)](https://phpackages.com/packages/pinweb-qnlive)
```

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.3k3](/packages/defstudio-telegraph)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[riclep/laravel-storyblok

A Laravel wrapper around the Storyblok API to provide a familiar experience for Laravel devs

6279.6k5](/packages/riclep-laravel-storyblok)

PHPackages © 2026

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