PHPackages                             chenhua/laravel5-file-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. chenhua/laravel5-file-upload

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

chenhua/laravel5-file-upload
============================

The best file upload tool of Laravel 5 Editor.

v1.1.0(6y ago)0311MITPHP

Since Feb 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ichenhua/laravel5-file-upload)[ Packagist](https://packagist.org/packages/chenhua/laravel5-file-upload)[ Docs](http://www.ichenhua.cn)[ RSS](/packages/chenhua-laravel5-file-upload/feed)WikiDiscussions master Synced 2mo ago

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

Laravel5-FileUpload
-------------------

[](#laravel5-fileupload)

Laravel5-FileUpload 是用于 Kindeditor/Summernote 等富文本在线HTMl编辑器的图片上传组件，支持 Laravel5 项目。已集成本地、七牛云、阿里云文件存储。

更新记录
----

[](#更新记录)

- 2019-08-31 `Release v1.1.0` 修复 KindEditor 上传漏洞，配置文件添加返回格式参数控制。
- 2019-02-28 `Release v1.0.0` 完成 KindEditor/Summernote 在线编辑器主程序，且集成本地、七牛、阿里云oss存储。

安装流程
----

[](#安装流程)

1、安装的两种方式

① 直接编辑配置文件

将以下内容增加到 composer.json：

```
require: {
    "chenhua/laravel5-file-upload": "~1.0"
}
```

然后运行 `composer update`。

② 执行命令安装

运行命令：

```
composer require chenhua/laravel5-file-upload
```

2、完成上面的操作后，修改 `config/app.php` 中 `providers` 数组（laravel5.5以上忽略）

```
Chenhua\FileUpload\FileUploadServiceProvider::class,
```

3、执行 `artisan` 命令，生成 `config/vendor/editor.php` 配置文件

```
php artisan vendor:publish --tag=file_upload
```

4、修改 `config/vendor/editor.php` 配置文件

```
 [
        "file_id" => "file",
        "url_format" => 'local', //返回存储位置url
        "ret_format" => 'default', //上传返回格式
        "dirver"  => ['local'], //存储平台
        "disks"   => [
            "local"  => [
                'prefix' => 'uploads', //本地存储目录
            ],
            "qiniu"  => [
                'access_key' => '',
                'secret_key' => '',
                'bucket'     => '',
                'prefix'     => '',
                'domain'     => ''
            ],
            "aliyun" => [
                'ak_id'     => '',
                'ak_secret' => '',
                'end_point' => '',
                'bucket'    => '',
                'prefix'    => '',
            ],
        ],
    ],
    "kindeditor" => [
        "file_id" => "imgFile",
        "url_format" => 'local', //返回存储位置url
        "ret_format" => 'kindeditor', //上传返回格式
        "dirver"  => ['local'], //存储平台
        "disks"   => [
            "local"  => [
                'prefix' => 'uploads', //本地存储目录
            ],
            "qiniu"  => [
                'access_key' => '',
                'secret_key' => '',
                'bucket'     => '',
                'prefix'     => '',
                'domain'     => ''
            ],
            "aliyun" => [
                'ak_id'     => '',
                'ak_secret' => '',
                'end_point' => '',
                'bucket'    => '',
                'prefix'    => '',
            ],
        ],
    ],
];
```

> 七牛和阿里云的配置内容，需要去对应官网申请账号并配置获取，此处省略一万字。。。

License
-------

[](#license)

本扩展遵循 [MIT license](http://opensource.org/licenses/MIT) 开源。

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

2

Last Release

2447d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a64653b1bb58634ac5b34fa0f5dc099acfda93bc5dedd5122f79f9a9727fa08?d=identicon)[chenhua](/maintainers/chenhua)

---

Tags

laravelfileupload

### Embed Badge

![Health badge](/badges/chenhua-laravel5-file-upload/health.svg)

```
[![Health](https://phpackages.com/badges/chenhua-laravel5-file-upload/health.svg)](https://phpackages.com/packages/chenhua-laravel5-file-upload)
```

###  Alternatives

[czim/laravel-paperclip

Laravel Eloquent file attachment solution

80802.1k6](/packages/czim-laravel-paperclip)[digital-creative/nova-filepond

A Nova field for uploading File, Image and Video using filepond.

5568.0k1](/packages/digital-creative-nova-filepond)[itskodinger/midia

Simple Media manager for your Laravel project

1415.8k](/packages/itskodinger-midia)

PHPackages © 2026

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