PHPackages                             nizerin/qiniu-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. nizerin/qiniu-sdk

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

nizerin/qiniu-sdk
=================

七牛云实时音频云 sdk-php

1.0.0(6y ago)37MITPHPPHP &gt;=5.3.3

Since May 25Pushed 6y agoCompare

[ Source](https://github.com/NiZerin/qiniu-sdk)[ Packagist](https://packagist.org/packages/nizerin/qiniu-sdk)[ RSS](/packages/nizerin-qiniu-sdk/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

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

[](#qiniu-sdk)

☘️七牛云实时音频云 sdk-php

安装
--

[](#安装)

- 通过composer，这是推荐的方式，可以使用composer.json 声明依赖，或者运行下面的命令。SDK 包已经放到这里 [`qiniu/php-sdk`](https://packagist.org/packages/nizerin/php-sdk) 。

```
$ composer require nizerin/qiniu-sdk
```

- 直接下载安装，SDK 没有依赖其他第三方库，但需要参照 composer的autoloader，增加一个自己的autoloader程序。

运行环境
----

[](#运行环境)

Qiniu SDK版本PHP 版本7.xcURL extension, 5.3 - 5.6,7.06.xcURL extension, 5.2 - 5.6使用方法
----

[](#使用方法)

### 上传

[](#上传)

```
use Qiniu\Storage\UploadManager;
use Qiniu\Auth;
...
    $upManager = new UploadManager();
    $auth = new Auth($accessKey, $secretKey);
    $token = $auth->uploadToken($bucketName);
    list($ret, $error) = $upManager->put($token, 'formput', 'hello world');
...
```

测试
--

[](#测试)

```
$ ./vendor/bin/phpunit tests/Qiniu/Tests/
```

常见问题
----

[](#常见问题)

- $error保留了请求响应的信息，失败情况下ret 为none, 将$error可以打印出来，提交给我们。
- API 的使用 demo 可以参考 [单元测试](https://github.com/nizerin/php-sdk/blob/master/tests)。

代码贡献
----

[](#代码贡献)

贡献记录
----

[](#贡献记录)

- [所有贡献者](https://github.com/nizerin/php-sdk/contributors)

联系我们
----

[](#联系我们)

代码许可
----

[](#代码许可)

The MIT License (MIT).详情见 [License文件](https://github.com/nizerin/php-sdk/blob/master/LICENSE).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

2542d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/573fcf255345bc64772d2c61b862bd91ff59089560d78094eb218a4df1d72e35?d=identicon)[nizerin](/maintainers/nizerin)

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[loophp/collection

A (memory) friendly, easy, lazy and modular collection class.

745663.8k13](/packages/loophp-collection)[phpactor/language-server

Generic Language Server Platform

55470.1k6](/packages/phpactor-language-server)

PHPackages © 2026

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