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

ActiveLibrary

liz/flysystem-aliyun
====================

AliYun oss adapter for flysystem

v1.2(7y ago)0111MITPHPPHP ^7.0

Since Dec 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/l396635210/flysystem-aliyun)[ Packagist](https://packagist.org/packages/liz/flysystem-aliyun)[ RSS](/packages/liz-flysystem-aliyun/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (4)Used By (1)

AliYun OSS(阿里云对象存储) Adapter For Flysystem.
------------------------------------------

[](#aliyun-oss阿里云对象存储-adapter-for-flysystem)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Flysystem 适配器： [阿里云](https://help.aliyun.com/document_detail/32099.html)

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

[](#installation)

composer require liz/flysystem-aliyun

Usage
-----

[](#usage)

```
require 'vendor/autoload.php';

use League\Flysystem\Filesystem;
use Liz\Flysystem\AliYun\AliYunOssAdapter;
$endpoint = 'oss-cn-beijing.aliyuncs.com';
$bucket = 'bucket';
$accessKey = 'access-key';
$secretKey = 'secret-key';

// write file
$result = $flysystem->write('bucket/path/file.txt', 'contents');

// write stream
$stream = fopen('.env', 'r+');
$result = $flysystem->writeStream('bucket/path/filestream.txt', $stream);

// update file
$result = $flysystem->update('bucket/path/file.txt', 'new contents');

// has file
$result = $flysystem->has('bucket/path/file.txt');

// read file
$result = $flysystem->read('bucket/path/file.txt');

// delete file
$result = $flysystem->delete('bucket/path/file.txt');

// rename files
$result = $flysystem->rename('bucket/path/filename.txt', 'bucket/path/newname.txt');

// copy files
$result = $flysystem->copy('bucket/path/file.txt', 'bucket/path/file_copy.txt');

// list the contents
$result = $flysystem->listContents('path', false);
```

Notice
------

[](#notice)

由于阿里云没有文件夹的概念，建议顶级目录同bucket名 `getVisibility()`,`setVisibility()`阿里云没有提供相关操作

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

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

Total

3

Last Release

2675d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ce588a9a1661fcaab1409876f8dde4e75b8b1fb95f5c7a09220439f6119d569?d=identicon)[l396635210](/maintainers/l396635210)

---

Top Contributors

[![l396635210](https://avatars.githubusercontent.com/u/16893909?v=4)](https://github.com/l396635210 "l396635210 (3 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M186](/packages/spatie-laravel-backup)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M788](/packages/league-flysystem-aws-s3-v3)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[unisharp/laravel-filemanager

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

2.2k3.3M73](/packages/unisharp-laravel-filemanager)

PHPackages © 2026

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