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

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

panwenbin/laravel-aliyunoss
===========================

Laravel Service Provider for aliyun oss implements Flysystem

1.1.1(6y ago)2832MITPHP

Since Jul 27Pushed 6y ago1 watchersCompare

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

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

阿里云OSS的Laravel Service Provider封装
---------------------------------

[](#阿里云oss的laravel-service-provider封装)

> 官方的`aliyun-oss-php-sdk-flysystem`和`aliyun-oss-php-sdk-laravel`各种缺点还不怎么更新
> 第三方的也是版本滞后，基本没有兼容到PHPSDK 2.3的，所以参考这些后重新封装了一个。
> 欢迎提issue或者pull request。

版本
--

[](#版本)

此封装依赖直接写到了Laravel5.5及以上，支持服务自动发现。

安装
--

[](#安装)

`composer require panwenbin/laravel-aliyunoss`

配置
--

[](#配置)

```
// config/filesystems.php
'default' => env('FILESYSTEM_DRIVER', 'oss'), // 缺省驱动改为oss
...
'disks' => [
    ...
    // 增加oss配置段
    'oss' => [
        'driver'     => 'oss',
        'access_id'  => env('OSS_ACCESS_ID','your id'),
        'access_key' => env('OSS_ACCESS_KEY','your key'),
        'bucket'     => env('OSS_BUCKET','your bucket'),
        'endpoint'   => env('OSS_ENDPOINT','your endpoint'),
        'prefix'     => env('OSS_PREFIX', ''), // optional
        'is_cname'   => env('OSS_IS_CNAME', ''), // optional
    ],
]

```

使用
--

[](#使用)

[Laravel 5.5 Doc#FileSystem](https://laravel.com/docs/5.5/filesystem)

插件
--

[](#插件)

```
Storage::disk('oss')->uploadFile($md5_path, '/local_fle_path/1.png', ['mimetype' => 'image/png','filename' => 'filename_by_down.png']);
Storage::disk('oss')->getUrl($path); // 永久地址
Storage::disk('oss')->getTemporaryUrl($path, 3600); // 临时地址

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

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

Total

3

Last Release

2449d 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 (6 commits)")

### Embed Badge

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

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

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[alphasnow/aliyun-oss-flysystem

Flysystem adapter for the Aliyun storage

14249.2k4](/packages/alphasnow-aliyun-oss-flysystem)

PHPackages © 2026

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