PHPackages                             qaqzzl/aliyun-laravel-storage - 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. qaqzzl/aliyun-laravel-storage

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

qaqzzl/aliyun-laravel-storage
=============================

Aliyun Resource (Cloud) Storage SDK for Laravel

v1.0.0(5y ago)295MITPHPPHP &gt;=5.4.0

Since Mar 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/qaqzzl/aliyun-laravel-storage)[ Packagist](https://packagist.org/packages/qaqzzl/aliyun-laravel-storage)[ RSS](/packages/qaqzzl-aliyun-laravel-storage/feed)WikiDiscussions main Synced 3d ago

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

阿里云OSS云储存 Laravel Storage版
==========================

[](#阿里云oss云储存-laravel-storage版)

基于  开发

符合Laravel 的Storage用法。

安装
--

[](#安装)

- `composer require qaqzzl/aliyun-laravel-storage`

#### 添加 service provider（optional. if laravel &lt; 5.5 || lumen）

[](#添加-service-provideroptional-if-laravel--55--lumen)

```
// laravel < 5.5
qaqzzl\AliyunStorage\AliyunFilesystemServiceProvider::class,

// lumen
$app->register(qaqzzl\AliyunStorage\AliyunFilesystemServiceProvider::class);
```

#### 配置文件

[](#配置文件)

- `config/filesystem.php` 里面的 `disks`数组加上：

```
'disks' => [
    // code...
    'ali'=> [
        'driver'    => 'ali',
        'domains' => [
            'default'   => env('ALIYUN_OSS_DOMAIN'), //你的七牛域名
            'https'     => '',         //你的HTTPS域名
            'custom'    => '',     //你的自定义域名
        ],
        'access_key'    => env('ALIYUN_OSS_ACCESS_KEY'),    //AccessKey
        'secret_key'    => env('ALIYUN_OSS_SECRET_KEY'),    //SecretKey
        'endpoint'      => env('ALIYUN_OSS_ENDPOINT'),      //Endpoint
        'bucket'        => env('ALIYUN_OSS_BUCKET'),        //Bucket名字
        'notify_url'    => '',  //持久化处理回调地址
    ],
],
```

使用方法
----

[](#使用方法)

```
$disk = \Storage::disk('ali');
$disk->exists('file.jpg');                      //文件是否存在
$disk->get('file.jpg');                         //获取文件内容
$disk->put('file.jpg',$contents);               //上传文件
$disk->delete('file.jpg');                      //删除文件
$disk->delete(['file1.jpg', 'file2.jpg']);      //删除文件
$disk->copy('old/file1.jpg', 'new/file1.jpg');  //复制文件到新的路径
$disk->move('old/file1.jpg', 'new/file1.jpg');  //移动文件到新的路径
$disk->size('file1.jpg');                       //取得文件大小
$disk->lastModified('file1.jpg');               //取得最近修改时间 (UNIX)
$disk->files($directory);                       //取得目录下所有文件
$disk->deleteDirectory($directory);             //删除目录，包括目录下所有子文件子目录
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

1897d ago

Major Versions

v0.0.1 → v1.0.02021-03-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/bf4371d4f75dc379457bbb0aa2510b9e3441e9fc1543c947b7d06540b6a594dc?d=identicon)[qaqzzl](/maintainers/qaqzzl)

---

Top Contributors

[![qaqzzl](https://avatars.githubusercontent.com/u/49259252?v=4)](https://github.com/qaqzzl "qaqzzl (13 commits)")

---

Tags

aliyunlaraveloss

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/qaqzzl-aliyun-laravel-storage/health.svg)

```
[![Health](https://phpackages.com/badges/qaqzzl-aliyun-laravel-storage/health.svg)](https://phpackages.com/packages/qaqzzl-aliyun-laravel-storage)
```

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.3M74](/packages/unisharp-laravel-filemanager)[league/flysystem-sftp-v3

SFTP filesystem adapter for Flysystem.

6129.6M91](/packages/league-flysystem-sftp-v3)[iidestiny/flysystem-oss

Flysystem adapter for the Oss storage.

95607.5k26](/packages/iidestiny-flysystem-oss)[yii2-starter-kit/yii2-file-kit

Yii2 file upload and storage kit

151216.8k6](/packages/yii2-starter-kit-yii2-file-kit)[xxtime/flysystem-aliyun-oss

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

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

PHPackages © 2026

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