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

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

muqiuren/hyperf-flysystem-upyun
===============================

hyperf框架的flysystem文件系统的upyun存储驱动

v0.0.3(1y ago)07MITPHPPHP &gt;=8.1CI passing

Since Feb 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/muqiuren/hyperf-flysystem-upyun)[ Packagist](https://packagist.org/packages/muqiuren/hyperf-flysystem-upyun)[ RSS](/packages/muqiuren-hyperf-flysystem-upyun/feed)WikiDiscussions main Synced 1mo ago

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

Flysystem的upyun存储驱动
===================

[](#flysystem的upyun存储驱动)

hyperf框架的flysystem文件系统的upyun(又拍云)的云存储驱动实现

[hyperf文件系统](https://hyperf.wiki/3.1/#/zh-cn/filesystem)

[League Flysystem](https://github.com/thephpleague/flysystem)

[![PHP Version Require](https://camo.githubusercontent.com/a90185b157a34d61bec966b6d3099a263eef744d3cb6b76cce869eeafb70a26e/68747470733a2f2f706f7365722e707567782e6f72672f6d7571697572656e2f6879706572662d666c7973797374656d2d757079756e2f726571756972652f706870)](https://packagist.org/packages/muqiuren/hyperf-flysystem-upyun)[![License](https://camo.githubusercontent.com/7e080689afe8780027e428e2529e45a729efa78109dcc6ed9a46b014ad9d7bc5/68747470733a2f2f706f7365722e707567782e6f72672f6d7571697572656e2f6879706572662d666c7973797374656d2d757079756e2f6c6963656e7365)](https://packagist.org/packages/muqiuren/hyperf-flysystem-upyun)[![Total Downloads](https://camo.githubusercontent.com/e9a64fb049a890a468f6b348814f6229dcc6f7ac81b7281ad3d582fc928375fe/68747470733a2f2f706f7365722e707567782e6f72672f6d7571697572656e2f6879706572662d666c7973797374656d2d757079756e2f646f776e6c6f616473)](https://packagist.org/packages/muqiuren/hyperf-flysystem-upyun)[![Latest Stable Version](https://camo.githubusercontent.com/049be4a13fb5e1813ad99920a5cbb49cde6064723e121a6c839816e9dfe900ca/68747470733a2f2f706f7365722e707567782e6f72672f6d7571697572656e2f6879706572662d666c7973797374656d2d757079756e2f76)](https://packagist.org/packages/muqiuren/hyperf-flysystem-upyun)

### 安装

[](#安装)

```
composer require muqiuren/hyperf-flysystem-upyun
```

### 快速使用

[](#快速使用)

1. hyperf配置config/autoload/file.php,添加upyun云存储配置(操作员名称、密码、存储服务名)，[又拍云文档](https://help.upyun.com/knowledge-base/quick_start/)

```
...
'storage' => [
    ...
    'upyun' => [
        'driver' => UpyunAdapterFactory::class,
        'username' => env('UPYUN_USERNAME'),
        'password' => env('UPYUN_PASSWORD'),
        'bucket_name' => env('UPYUN_BUCKET'),
        'options' => [
            UpyunHeaderEnum::CONTENT_SECRET->value => 'common_secret'
        ]
    ]
]
```

2. 通过FilesystemFactory调用云存储

```
// 上传文件
public function putObject(\Hyperf\Filesystem\FilesystemFactory $factory)
{
    $storage = $factory->get('upyun');
    $path = '/test/hello.txt';
    $content = 'hello world';
    $storage->write($path, $content, [
        UpyunHeaderEnum::CONTENT_SECRET->value => 'custom_single_file_secret'
    ]);
}
```

更多示例请参考example目录

### TODO

[](#todo)

- 列出目录文件内容
- 支持配置header以及meta信息

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance44

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

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

Total

3

Last Release

435d ago

PHP version history (2 changes)v0.0.1PHP ^8.1

v0.0.2PHP &gt;=8.1

### Community

Maintainers

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

---

Top Contributors

[![muqiuren](https://avatars.githubusercontent.com/u/16541671?v=4)](https://github.com/muqiuren "muqiuren (10 commits)")

### Embed Badge

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

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

###  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)
