PHPackages                             jaychan/laravel-alioss - 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. jaychan/laravel-alioss

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

jaychan/laravel-alioss
======================

阿里云OSS for Laravel

1.0(10y ago)525MITPHPPHP &gt;=5.4.0

Since Aug 5Pushed 10y ago1 watchersCompare

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

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

阿里云OSS SDK for Laravel 5
========================

[](#阿里云oss-sdk-for-laravel-5)

安装
--

[](#安装)

1. 安装包文件

```
composer require jaychan/laravel-alioss
```

2. 添加 `ServiceProvider` 到您项目 `config/app.php` 中的 `providers` 部分:

```
JayChan\Aliyun\OSS\ServiceProvider::class,
```

3. 创建配置文件：

```
php artisan vendor:publish
```

4. 请修改应用根目录下的 `config/alioss.php` 中对应的项即可；
5. （可选）添加外观到 `config/app.php` 中的 `aliases` 部分:

```
'AliyunOSS' => JayChan\Aliyun\OSS\Facade::class,
```

使用
--

[](#使用)

```
// 设置Bucket
AliyunOSS::setBucket('my-bucket');
// 上传文件
AliyunOSS::uploadFile('key', $file = '/path/to/your/file', $bucket = null);
// 上传内容
AliyunOSS::uploadContent('key', $content = 'content', $bucket = null);
// 设置Bucket前缀
AliyunOSS::setBucketPrefix('prefix_');
// 获取资源请求URL
AliyunOSS::getUrl($key, $expire = 3600, $bucket = null);
```

License
-------

[](#license)

MIT

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3931d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3667c13e13916fb2135010f3a713212a59736713a8ec9c64e99bfe799afa95a8?d=identicon)[jaychan](/maintainers/jaychan)

---

Top Contributors

[![jaychan](https://avatars.githubusercontent.com/u/3414568?v=4)](https://github.com/jaychan "jaychan (8 commits)")

---

Tags

laravelaliyunossalioss

### Embed Badge

![Health badge](/badges/jaychan-laravel-alioss/health.svg)

```
[![Health](https://phpackages.com/badges/jaychan-laravel-alioss/health.svg)](https://phpackages.com/packages/jaychan-laravel-alioss)
```

###  Alternatives

[jacobcyl/ali-oss-storage

aliyun oss filesystem storage for laravel 5+

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

PHPackages © 2026

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