PHPackages                             wll/hyperf-upload - 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. wll/hyperf-upload

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

wll/hyperf-upload
=================

hyperf-upload

v0.0.2(6y ago)16394MITPHPPHP &gt;=7.0

Since Feb 23Pushed 6y ago1 watchersCompare

[ Source](https://github.com/gg22mm/hyperf-upload)[ Packagist](https://packagist.org/packages/wll/hyperf-upload)[ RSS](/packages/wll-hyperf-upload/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (3)Used By (0)

hyperf-upload
=============

[](#hyperf-upload)

hyperf-upload 是hyperf框架文件上传包,可本地传，可oss上传，显示,删除。 目前支持阿里oss 与 七牛oss。 也看了这位兄弟的:  用不起来。所以撸了一个。后面可以改成用任务方式异步一下。

基本使用
----

[](#基本使用)

1、 下载包

```
composer require wll/hyperf-upload

//如果要用到oss上传可选择安装
composer require qiniu/php-sdk
composer require aliyuncs/oss-sdk-php
```

2、 发布配置生成文件:config/autoload/filestore.php

```
bin/hyperf.php vendor:publish hyperf-upload
```

3、 绑定使用什么上传方式

```
config/autoload/dependencies.php
修改绑定
'dependencies' => [
	Wll\HyperfUpload\Service\FileStoreInterface::class =>  Wll\HyperfUpload\Service\LocalFileStoreService::class,//默认使用本地上传
	//Wll\HyperfUpload\Service\FileStoreInterface::class => Wll\HyperfUpload\Service\AliyunFileStoreService::class,//阿里oss
	//Wll\HyperfUpload\Service\FileStoreInterface::class => Wll\HyperfUpload\Service\QiniuFileStoreService::class,//七牛oss
],
```

4、 开始使用

```
use Hyperf\Utils\ApplicationContext;
use Wll\HyperfUpload\Service\FileStoreInterface;

 public function index(){

   $container = ApplicationContext::getContainer();
   $upload=$container->get(FileStoreInterface::class); //获得上传对象

	//返回文件名+扩展名
	$path = $upload->store($request->file('file'));

	print_r($path);

	//获取可以访问的url
	echo "http的访问url".$upload->url($path);

	//删除
	$a=$upload->delete(['images/43704c244ee5fc5dcb83402f88f33144.jpg']);

	if($a){
		echo 'dd';
	}else{
		echo 'ccc';
	}

}
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

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

2

Last Release

2276d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6aa796e37c43d70ba54a6aba07bb50efeca3c0061a82bdd58d6e5bee312fe315?d=identicon)[gg22mm](/maintainers/gg22mm)

---

Top Contributors

[![gg22mm](https://avatars.githubusercontent.com/u/6648329?v=4)](https://github.com/gg22mm "gg22mm (11 commits)")

---

Tags

uploadhyperf

### Embed Badge

![Health badge](/badges/wll-hyperf-upload/health.svg)

```
[![Health](https://phpackages.com/badges/wll-hyperf-upload/health.svg)](https://phpackages.com/packages/wll-hyperf-upload)
```

###  Alternatives

[kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 5.x, 4.x, and 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

5.4k7.9M13](/packages/kartik-v-bootstrap-fileinput)[vich/uploader-bundle

Ease file uploads attached to entities

1.9k25.9M116](/packages/vich-uploader-bundle)[marrouchi/upload-crop-image-bundle

Basic server side cropping behavior for Symfony2

121.1k](/packages/marrouchi-upload-crop-image-bundle)

PHPackages © 2026

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