PHPackages                             shopwwi/filesystem-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. shopwwi/filesystem-oss

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

shopwwi/filesystem-oss
======================

AliYun OSS adapter for flysystem V2. aliyuncs/oss-sdk-php ~2.4

v1.0.3(3y ago)12.7k—0%12MITPHPPHP &gt;=7.3

Since Mar 8Pushed 3y agoCompare

[ Source](https://github.com/shopwwi/filesystem-oss)[ Packagist](https://packagist.org/packages/shopwwi/filesystem-oss)[ Docs](https://github.com/phcent/filesystem-oss)[ RSS](/packages/shopwwi-filesystem-oss/feed)WikiDiscussions main Synced 1mo ago

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

\#安装

```
composer require shopwwi/filesystem-oss

```

\#感谢

```
借鉴了 xxtime/flysystem-aliyun-oss 部分代码，在此表示感谢。

```

Usage
=====

[](#usage)

```
use League\Flysystem\Filesystem;
use Shopwwi\FilesystemOss\OssAdapter;

$aliyun = new OssAdapter([
    'accessId'       => '',
    'accessSecret'   => '',
    'bucket'         => '',
    'endpoint'       => '',
    // 'timeout'        => 3600,
    // 'connectTimeout' => 10,
    // 'isCName'        => false,
    // 'token'          => '',
]);
$filesystem = new Filesystem($aliyun);

// Write Files
$filesystem->write('path/to/file.txt', 'contents');
// get RAW data from aliYun OSS
$raw = $aliyun->supports->getFlashData();

// Write Use writeStream
$stream = fopen('local/path/to/file.txt', 'r+');
$result = $filesystem->writeStream('path/to/file.txt', $stream);
if (is_resource($stream)) {
    fclose($stream);
}

// Update Files
$filesystem->update('path/to/file.txt', 'new contents');

// Check if a file exists
$exists = $filesystem->has('path/to/file.txt');

// Read Files
$contents = $filesystem->read('path/to/file.txt');

// Delete Files
$filesystem->delete('path/to/file.txt');

// Rename Files
$filesystem->rename('filename.txt', 'newname.txt');

// Copy Files
$filesystem->copy('filename.txt', 'duplicate.txt');

// list the contents (not support recursive now)
$filesystem->listContents('path', false);

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity45

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

Total

2

Last Release

1324d ago

PHP version history (2 changes)v1.0.2PHP &gt;=7.2

v1.0.3PHP &gt;=7.3

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

Flysystemaliyun-ossflysystem-aliyun-oss

### Embed Badge

![Health badge](/badges/shopwwi-filesystem-oss/health.svg)

```
[![Health](https://phpackages.com/badges/shopwwi-filesystem-oss/health.svg)](https://phpackages.com/packages/shopwwi-filesystem-oss)
```

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

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

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

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

Local filesystem adapter for Flysystem.

226231.8M39](/packages/league-flysystem-local)[league/flysystem-bundle

Symfony bundle integrating Flysystem into Symfony applications

40029.5M87](/packages/league-flysystem-bundle)[league/flysystem-sftp-v3

SFTP filesystem adapter for Flysystem.

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

In-memory filesystem adapter for Flysystem.

8533.6M194](/packages/league-flysystem-memory)

PHPackages © 2026

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