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

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

guoguo882010/aliyun-oss
=======================

阿里云 oss 对象存储

1.0.1(4mo ago)0651MITPHPPHP &gt;=7.1

Since Aug 26Pushed 4mo agoCompare

[ Source](https://github.com/guoguo882010/aliyun-oss)[ Packagist](https://packagist.org/packages/guoguo882010/aliyun-oss)[ RSS](/packages/guoguo882010-aliyun-oss/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

阿里云 OSS 对象存储
============

[](#阿里云-oss-对象存储)

**安装**

```
composer require guoguo882010/aliyun-oss
```

**使用**

```
$config = [
        'access_key_id' => 'key id',

        'access_key_secret' => 'key secret',

        // 桶名称
        'bucket_name'       => 'scb-sys',

        // 阿里外网、内网url，自定义url
        'endpoint'          => 'http://oss-cn-chengdu.aliyuncs.com',

        // 临时url超时时间，单位秒
        'sign_timeout'      => 3600,
    ];

$oss = new \RSHDSDK\ALiYunOSS\ALiYunOSS($config);

//判断对象是否存在
$oss->objectExist('oss对象路径');

//上传文本到oss
$oss->uploadContent('oss存储路径','字符串内容');

//上传文件到oss
$oss->uploadFile('本地路径','oss存储路径');

//获取oss存储文件的文本内容
$oss->getObjectContent('oss对象路径');

//下载oss
$oss->downloadFile('oss对象路径','本地保存文件名');

//获取对象授权访问url，在浏览器中直接打开文件（如果浏览器支持，比如 PDF、图片、文本）
$oss->getObjectSignUrl('oss对象路径');

//获取图片授权访问url，固定宽高
$oss->getPicSignUrlFixedMode('oss对象路径','宽像素','高像素');

//获取图片授权访问url，等比例宽高
$oss->getPicSignUrlLfitMode('oss对象路径','宽像素','高像素');

//获取图片授权访问url
$oss->getSignUrl('oss对象路径');
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance74

Regular maintenance activity

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity32

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

Total

2

Last Release

142d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9b57028d0ae01c0a3e0a63cf818bff6b9d6ec8f8b92c506ac6a344d42e1dfea8?d=identicon)[gk](/maintainers/gk)

---

Top Contributors

[![guoguo882010](https://avatars.githubusercontent.com/u/3445260?v=4)](https://github.com/guoguo882010 "guoguo882010 (2 commits)")

### Embed Badge

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

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

###  Alternatives

[jacobcyl/ali-oss-storage

aliyun oss filesystem storage for laravel 5+

523566.2k7](/packages/jacobcyl-ali-oss-storage)[iidestiny/flysystem-oss

Flysystem adapter for the Oss storage.

95607.5k26](/packages/iidestiny-flysystem-oss)[xxtime/flysystem-aliyun-oss

AliYun OSS adapter for flysystem. Support PHP8. aliyuncs/oss-sdk-php ~2.6

51505.3k28](/packages/xxtime-flysystem-aliyun-oss)[yangyifan/upload

上传 SDK for Laravel

12422.6k3](/packages/yangyifan-upload)[alphasnow/aliyun-oss-flysystem

Flysystem adapter for the Aliyun storage

14249.2k4](/packages/alphasnow-aliyun-oss-flysystem)[summergeorge/ali-oss-storage

aliyun oss filesystem storage for laravel 5+

3915.5k](/packages/summergeorge-ali-oss-storage)

PHPackages © 2026

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