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

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

charlestide/flysystem-aliyun-oss
================================

This is a Flysystem adapter that forked from \[apollopy/flysystem-aliyun-oss\]

1.2.2(7y ago)021MITPHP &gt;=5.5.9

Since Jan 20Compare

[ Source](https://github.com/charlestide/flysystem-aliyun-oss)[ Packagist](https://packagist.org/packages/charlestide/flysystem-aliyun-oss)[ RSS](/packages/charlestide-flysystem-aliyun-oss/feed)WikiDiscussions Synced 4w ago

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

Flysystem Adapter for Aliyun OSS
================================

[](#flysystem-adapter-for-aliyun-oss)

> Forked From apollopy/flysystem-aliyun-oss

This is a Flysystem adapter that forked from [apollopy/flysystem-aliyun-oss](https://github.com/apollopy/flysystem-aliyun-oss)

Changes:

- Add isCName Configure, Now Configuration has new option named "is\_cname"
- Add SSL Configure, Now the ssl option specify whether use ssl

```
        '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'),
            'is_cname'   => env('OSS_IS_CNAME','is_cname'),
            'prefix'     => env('OSS_PREFIX', ''), // optional
            'ssl'        => env('OSS_SSL', false)
        ],
```

- Add getUrl Method to Class AliyunOssAdapter, so you can use follow method
- Upgrade aliyuncs/oss-sdk-php version from ~2.2.1 to &gt;=2.0

```
$url = Storage::cloud()->url($path);
```

Original Readme
===============

[](#original-readme)

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

[](#installation)

```
composer require apollopy/flysystem-aliyun-oss
```

for Laravel
-----------

[](#for-laravel)

This service provider must be registered.

```
// config/app.php

'providers' => [
    '...',
    ApolloPY\Flysystem\AliyunOss\AliyunOssServiceProvider::class,
];
```

edit the config file: config/filesystems.php

add config

```
'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
],
```

change default to oss

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

Use
---

[](#use)

see [Laravel wiki](https://laravel.com/docs/5.1/filesystem)

Plugins
-------

[](#plugins)

inspire by [itbdw/laravel-storage-qiniu](https://github.com/itbdw/laravel-storage-qiniu)

```
Storage::disk('oss')->putFile($md5_path, '/local_file_path/1.png', ['mimetype' => 'image/png','filename' => 'filename_by_down.png']);

Storage::disk('oss')->signedDownloadUrl($path, 3600, 'oss-cn-beijing.aliyuncs.com', true);
```

IDE Helper
----------

[](#ide-helper)

if installed [barryvdh/laravel-ide-helper](https://github.com/barryvdh/laravel-ide-helper)

edit the config file: config/ide-helper.php

```
'interfaces'      => [
    '\Illuminate\Contracts\Filesystem\Filesystem' => ApolloPY\Flysystem\AliyunOss\FilesystemAdapter::class,
],
```

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Recently: every ~157 days

Total

10

Last Release

2878d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2333617?v=4)[Charles.Tide](/maintainers/charlestide)[@charlestide](https://github.com/charlestide)

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.9k556.2M21.3k](/packages/laravel-framework)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.7k293.8M1.1k](/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.6M90](/packages/unisharp-laravel-filemanager)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k20](/packages/tempest-framework)[filegator/filegator

Filegator

3.0k1.3k](/packages/filegator-filegator)[iidestiny/flysystem-oss

Flysystem adapter for the Oss storage.

95653.2k29](/packages/iidestiny-flysystem-oss)

PHPackages © 2026

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