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

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

kriss/yii2-filesystem-qiniu
===========================

Yii2 filesystem Qiniu

v1.0(8y ago)42261MITPHP

Since Jun 7Pushed 7y ago2 watchersCompare

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

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

**important:** this project is deprecated, use [kriss/yii2-flysystem](https://github.com/krissss/yii2-flysystem) instead

Yii2 filesystem Qiniu
=====================

[](#yii2-filesystem-qiniu)

[Qiniu](http://www.qiniu.com/) storage for Laravel based on [overtrue/flysystem-qiniu](https://github.com/overtrue/flysystem-qiniu).

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

[](#installation)

```
php composer.phar require --prefer-dist kriss/yii2-filesystem-qiniu -vvv

```

or add

```
"kriss/yii2-filesystem-qiniu": "*"

```

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

Config
------

[](#config)

in `web.php`(under Basic Template) or `main.php or main-local.php`(under Advanced Template)

```
'components' => [
    ...
    'qiniu' => [
        'class' => \kriss\qiniu\QiNiuComponent::className(),
        'access_key' => 'xxx',
        'secret_key' => 'xxx',
        'bucket' => 'xxx',
        'domain' => 'xxx.xxx.com'
    ],
    ...
]
```

Usage
-----

[](#usage)

```
/** @var QiNiuComponent $qiniu */
$qiniu = Yii::$app->get(static::QI_NIU);
$disk = $qiniu->getDisk();

// create a file
$disk->put('avatars/1', $fileContents);

// check if a file exists
$exists = $disk->has('file.jpg');

// get timestamp
$time = $disk->lastModified('file1.jpg');
$time = $disk->getTimestamp('file1.jpg');

// copy a file
$disk->copy('old/file1.jpg', 'new/file1.jpg');

// move a file
$disk->move('old/file1.jpg', 'new/file1.jpg');

// get file contents
$contents = $disk->read('folder/my_file.txt');
```

[Full API documentation.](http://flysystem.thephpleague.com/api/)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

2

Last Release

3208d ago

Major Versions

0.0.1 → v1.02017-09-18

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

filesystemqiniuyii2-extensionfilesystemyii2extensionqiniu

### Embed Badge

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

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

###  Alternatives

[fedemotta/yii2-aws-sdk

This extension provides the AWS SDK integration for the Yii2 framework

15448.9k2](/packages/fedemotta-yii2-aws-sdk)

PHPackages © 2026

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