PHPackages                             panwenbin/yii2-aliyunoss - 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. panwenbin/yii2-aliyunoss

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

panwenbin/yii2-aliyunoss
========================

Yii2 component for aliyun oss

0.1.1(7y ago)013MITPHP

Since Jun 12Pushed 7y ago1 watchersCompare

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

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

阿里云OSS在指定Bucket操作Objects的封装
---------------------------

[](#阿里云oss在指定bucket操作objects的封装)

> 大部分情况我们程序只是使用OSS的存储功能，对于bucket管理用的比较少
> 所以对常用的部分做了封装，减少了bucket参数传递，处理了异常（异常时返回null）

在Yii2中使用
--------

[](#在yii2中使用)

在配置文件增加

```
return [
    'components' => [
        'oss' => [
            'class' => 'panwenbin\yii2\aliyunoss\OssBucket',
            'endPoint' => 'oss-cn-shanghai.aliyuncs.com',
            'accessKeyId' => 'abcdefghijklmn',
            'accessKeySecret' => '1234567890',
            'bucket' => 'panwenbin',
            'cname' => 'oss.panwenbin.com',
        ],
    ],
];
```

使用

```
$oss = Yii::$app->get('oss');
$isSuccess = $oss->putObject('somefile.txt', 'This is a test file!');
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~0 days

Total

2

Last Release

2892d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9246abb5bc6b21062bebdd5685fb7eda856f3208707e743b848d97a62d81935e?d=identicon)[panwenbin](/maintainers/panwenbin)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/panwenbin-yii2-aliyunoss/health.svg)

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

###  Alternatives

[mihaildev/yii2-elfinder

Yii2 ElFinder

169658.8k52](/packages/mihaildev-yii2-elfinder)[yiier/yii2-aliyun-oss

Yii2 阿里云 OSS

445.3k2](/packages/yiier-yii2-aliyun-oss)

PHPackages © 2026

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