PHPackages                             yzh52521/flysystem-upyun - 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. yzh52521/flysystem-upyun

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

yzh52521/flysystem-upyun
========================

Flysystem adapter for the Upyun storage.

2.0(4y ago)13MITPHPPHP &gt;=7.2

Since Nov 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/yzh52521/flysystem-upyun)[ Packagist](https://packagist.org/packages/yzh52521/flysystem-upyun)[ RSS](/packages/yzh52521-flysystem-upyun/feed)WikiDiscussions main Synced 2d ago

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

Flysystem Upyun (又拍云)
=====================

[](#flysystem-upyun-又拍云)

floppy\_disk: 又拍云 Flysystem 实现

Requirement
===========

[](#requirement)

- PHP &gt;= 7.2
- League/Filesystem &gt;=2.0

安装
==

[](#安装)

直接可以通过 composer 来安装:

```
$ composer require yzh52521/flysystem-upyun 2.0
```

使用
==

[](#使用)

1.在一般项目中使用
----------

[](#1在一般项目中使用)

```
use League\Flysystem\Filesystem;
use yzh52521\Flysystem\Upyun\UpyunAdapter;

$bucket = 'your-bucket-name';
$operator = 'oparator-name';
$password = 'operator-password';
$domain = 'xxxxx.b0.upaiyun.com'; // 或者 https://xxxx.b0.upaiyun.com
$protocol='https', // 服务使用的协议，如需使用 http，在此配置 http

$adapter = new UpyunAdapter($bucket, $operator, $password, $domain,$protocol);

$flysystem = new Filesystem($adapter);
```

API 和方法调用
=========

[](#api-和方法调用)

```
bool $flysystem->write('file.md', 'contents');

bool $flysystem->writeStream('file.md', fopen('path/to/your/local/file.jpg', 'r'));

bool $flysystem->copy('foo.md', 'foo2.md');

bool $flysystem->delete('file.md');

bool $flysystem->has('file.md');

string|false $flysystem->read('file.md');

array $flysystem->listContents();

array $flysystem->getMetadata('file.md');

int $flysystem->getSize('file.md');

string $flysystem->getUrl('file.md');

string $flysystem->getMimetype('file.md');
```

License
=======

[](#license)

MIT

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Total

3

Last Release

1651d ago

Major Versions

1.0.x-dev → 2.02021-11-03

PHP version history (2 changes)1.0PHP &gt;=5.6

2.0PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15060466?v=4)[听风吹雨](/maintainers/yuanzhihai)[@yuanzhihai](https://github.com/yuanzhihai)

---

Top Contributors

[![yuanzhihai](https://avatars.githubusercontent.com/u/15060466?v=4)](https://github.com/yuanzhihai "yuanzhihai (5 commits)")

---

Tags

upyun

### Embed Badge

![Health badge](/badges/yzh52521-flysystem-upyun/health.svg)

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

###  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)[yii2-starter-kit/yii2-file-kit

Yii2 file upload and storage kit

151216.8k6](/packages/yii2-starter-kit-yii2-file-kit)[yangyifan/upload

上传 SDK for Laravel

12422.6k3](/packages/yangyifan-upload)[azure-oss/storage-blob-flysystem

Flysystem adapter for Azure Storage PHP

29936.0k10](/packages/azure-oss-storage-blob-flysystem)

PHPackages © 2026

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