PHPackages                             aiddroid/flysystem-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. [File &amp; Storage](/categories/file-storage)
4. /
5. aiddroid/flysystem-qiniu

ActiveLibrary[File &amp; Storage](/categories/file-storage)

aiddroid/flysystem-qiniu
========================

Flysystem adapter for Qiniu PHP SDK v7

10PHP

Since Dec 18Pushed 10y ago1 watchersCompare

[ Source](https://github.com/aiddroid/flysystem-qiniu)[ Packagist](https://packagist.org/packages/aiddroid/flysystem-qiniu)[ RSS](/packages/aiddroid-flysystem-qiniu/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

filesystem-qiniu
================

[](#filesystem-qiniu)

Flysystem Adapter for Qiniu sdk v7.x

安装
--

[](#安装)

- 通过composer，这是推荐的方式，可以使用composer.json 声明依赖，或者运行下面的命令。

```
$ composer require aiddroid/flysystem-qiniu
```

### Yii2配置config/web.php

[](#yii2配置configwebphp)

```
  'components' => [
        //...
        'fileStorage' => [
            'class' => '\trntv\filekit\Storage',
            'baseUrl' => '@storageUrl/source',
            'filesystem' => [
                'class' => '\aiddroid\flysystem\qiniu\QiniuFlysystemBuilder',
                'accessKey' => 'testAccessKey',//Qiniu的配置参数 http://www.qiniu.com/
                'secretKey' => 'testSecretKey',
                'bucketName' => 'testbucket',
            ]
        ],
        //...
```

### Yii2用法

[](#yii2用法)

```
$uploadedFile = \yii\web\UploadedFile::getInstance($uploadForm, 'avatarFile');
Yii::$app->fileStorage->save($uploadedFile);
```

### 一般用法

[](#一般用法)

```
use aiddroid\flysystem\qiniu\QiniuAdapter;
$adapter = new QiniuAdapter($accessKey, $secretKey,$bucketName);
$adapter->write('filepath','contents');
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9811c4e5393d29339bc5f08612cd6babe69bd2276756a84668fae13fc444bcce?d=identicon)[aiddroid](/maintainers/aiddroid)

---

Top Contributors

[![aiddroid](https://avatars.githubusercontent.com/u/3241146?v=4)](https://github.com/aiddroid "aiddroid (1 commits)")

### Embed Badge

![Health badge](/badges/aiddroid-flysystem-qiniu/health.svg)

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

###  Alternatives

[venveo/craft-compress

Create smart zip files from Craft assets on the fly

124.7k](/packages/venveo-craft-compress)

PHPackages © 2026

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