PHPackages                             printfshen/yii2-aliyun-oss - 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. printfshen/yii2-aliyun-oss

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

printfshen/yii2-aliyun-oss
==========================

The aliyun-oss for the Yii framework

v0.1.0(7y ago)024MITPHP

Since Nov 28Pushed 7y agoCompare

[ Source](https://github.com/printfshen/yii2-aliyun-oss)[ Packagist](https://packagist.org/packages/printfshen/yii2-aliyun-oss)[ RSS](/packages/printfshen-yii2-aliyun-oss/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (2)Used By (0)

Yii2 Aliyun OSS
===============

[](#yii2-aliyun-oss)

Yii2 阿里云 OSS

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

[](#installation)

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

Either run

```
        composer require printfshen/yii2-aliyun-oss

```

or add

```
        "printfshen/yii2-aliyun-oss": "dev-master"

```

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

Usage
-----

[](#usage)

在params.php添加配置 :

```
    'oss' => [
        'accessKeyId' => 'accessKeyId',
        'accessKeySecret' => 'accessKeySecret',
        'bucket' => 'bucket',
        'endPoint' => 'endPoint',
    ],
```

用法 :

```
 初始化 $oss = Oss::getInstance();
 上传   $oss->uploadFile($fileName, $filePath);
 删除   $oss->deleteFile($path);
 查看是否存在 $oss->doesFileExist($path);

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

2723d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a63f51866d144b8708e38681f4a67b531840bde1b16a7b6137ff9e72e7bab2b?d=identicon)[printfshen](/maintainers/printfshen)

---

Top Contributors

[![printfshen](https://avatars.githubusercontent.com/u/26736621?v=4)](https://github.com/printfshen "printfshen (6 commits)")

---

Tags

yii2extensionossAliyunOSS

### Embed Badge

![Health badge](/badges/printfshen-yii2-aliyun-oss/health.svg)

```
[![Health](https://phpackages.com/badges/printfshen-yii2-aliyun-oss/health.svg)](https://phpackages.com/packages/printfshen-yii2-aliyun-oss)
```

###  Alternatives

[yiier/yii2-aliyun-oss

Yii2 阿里云 OSS

445.3k2](/packages/yiier-yii2-aliyun-oss)[fedemotta/yii2-aws-sdk

This extension provides the AWS SDK integration for the Yii2 framework

15430.4k2](/packages/fedemotta-yii2-aws-sdk)[liyunfang/yii2-upload-behavior

Upload behavior for Yii 2

161.7k](/packages/liyunfang-yii2-upload-behavior)

PHPackages © 2026

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