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

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

liuchengguos/aliyun-oss-adapter
===============================

Use Aliyun oss as Storage for Laravel 5.0+

010PHP

Since Nov 18Pushed 9y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Use AliyunOss as Laravel Storage
================================

[](#use-aliyunoss-as-laravel-storage)

[![Latest Stable Version](https://camo.githubusercontent.com/eb1a6b9f44c2365eb76162bdecd814bb646cc8f8a5a0873fd1ec9f324b25bc40/68747470733a2f2f706f7365722e707567782e6f72672f6c69756368656e6767756f732f616c6979756e2d6f73732d616461707465722f762f737461626c65)](https://packagist.org/packages/liuchengguos/aliyun-oss-adapter) [![Total Downloads](https://camo.githubusercontent.com/264f158309fdcfb5103afd3fb26800dd36fbdf70f803dd08d69a06f9318687ad/68747470733a2f2f706f7365722e707567782e6f72672f616f626f7a68616e672f616c6979756e2d6f73732d616461707465722f646f776e6c6f616473)](https://packagist.org/packages/aobozhang/aliyun-oss-adapter) [![Latest Unstable Version](https://camo.githubusercontent.com/3497b5ff029f6acb7380e2da6095ff0edd10197d60bd5b302b6f80d5c041246f/68747470733a2f2f706f7365722e707567782e6f72672f616f626f7a68616e672f616c6979756e2d6f73732d616461707465722f762f756e737461626c65)](https://packagist.org/packages/aobozhang/aliyun-oss-adapter) [![License](https://camo.githubusercontent.com/6c02d1927bf703f2ca951db6e65fe79b8a0858304980676538596128a305f55c/68747470733a2f2f706f7365722e707567782e6f72672f616f626f7a68616e672f616c6979756e2d6f73732d616461707465722f6c6963656e7365)](https://packagist.org/packages/aobozhang/aliyun-oss-adapter)

Aliyun oss driver for Laravel5.0+, also support flysystem adapter.

Usage
-----

[](#usage)

```
 $request->file("image")->store("test");

//...

```

> more infomation 更多信息:
>
> [Laravel wiki](https://laravel.com/docs/5.2/filesystem)
>
> [Aobo's wiki](https://github.com/aobozhang/aliyun-oss-adapter/wiki)

Installation
------------

[](#installation)

This package can be installed through Composer.

```
composer require liuchengguos/aliyun-oss-adapter
```

Configuration
-------------

[](#configuration)

This service provider must be registered.

```
// config/app.php

'providers' => [
    ...,
    Liuchengguos\OSS\AliyunOssFilesystemServiceProvider::class,
];
```

add config:

```
// config/filesystem.php.

        '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'),
            		// eg. oss-cn-beijing.aliyuncs.com !!without 'http://' in OSS SDK 2.0+
        ],
```

change default to oss

```
'default' => 'oss';
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33537868?v=4)[l-guo](/maintainers/l-guo)[@l-guo](https://github.com/l-guo)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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