PHPackages                             syships/yii2-qiniu - 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. syships/yii2-qiniu

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

syships/yii2-qiniu
==================

The qiniu SDK for the Yii2 framework

0.0.5(1y ago)06Apache-2.0PHPPHP &gt;=7.2

Since Jul 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/syships/yii2-qiniu)[ Packagist](https://packagist.org/packages/syships/yii2-qiniu)[ RSS](/packages/syships-yii2-qiniu/feed)WikiDiscussions main Synced 1mo ago

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

This is a personal plugin for study. It is strongly recomended that you not use it. This plugin is unstable.
============================================================================================================

[](#this-is-a-personal-plugin-for-studyit-is-strongly-recomended-that-you-not-use-itthis-plugin-is-unstable)

It is the qiniu plugin for yii2
===============================

[](#it-is-the-qiniu-plugin-for-yii2)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](https://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist syships/yii2-qiniu "*"

```

or add

```
"syships/yii2-qiniu": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Before using the extension,you can add the \_ide\_helper.php under your application folder.

Once the extension is installed, simply use it in your code by :

config：

```
'components' => [
    'qiniu' => [
        'class' => 'syships\qiniu\Application',
        'accessKey' => "QdgHxWgNAhwiKLbzKtUgdNajI6wZopUEXLGN7Ujf",
        'secretKey' => "EKG9b3QW3YsVI0ID-xzDZFbd6I9E-Npey6pnYvI9"
    ],
],

```

You can use the code below：

```
use Qiniu\Storage\UploadManager;
use Yii;
use yii\web\UploadedFile;

$image = UploadedFile::getInstanceByName('image');
$fileName = 'image_' . time() .rand(1000,9999). '.' . $image->getExtension();
$upToken = Yii::$app->qiniu->Auth()->uploadToken("syships-imgs");
$uploadMgr = new UploadManager();
list($result, $error) = $uploadMgr->putFile($upToken, $fileName, $image->tempName);

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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

5

Last Release

667d ago

### Community

Maintainers

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

---

Top Contributors

[![syships](https://avatars.githubusercontent.com/u/101991678?v=4)](https://github.com/syships "syships (10 commits)")

---

Tags

yii2extensionqiniu

### Embed Badge

![Health badge](/badges/syships-yii2-qiniu/health.svg)

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

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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