PHPackages                             sanlilin/laravel-ueditor-plus - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sanlilin/laravel-ueditor-plus

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sanlilin/laravel-ueditor-plus
=============================

集成ueditor-plus

2.0.6(2y ago)127MITJavaScriptPHP ^7.3|^8.0

Since Feb 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/WHBLeer/laravel-ueditor-plus)[ Packagist](https://packagist.org/packages/sanlilin/laravel-ueditor-plus)[ RSS](/packages/sanlilin-laravel-ueditor-plus/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (8)Used By (0)

Laravel-UEditor-Plus
====================

[](#laravel-ueditor-plus)

UEditor integration for Laravel 5.

安装
--

[](#安装)

```
```shell
$ composer require "sanlilin/laravel-ueditor-plus"
```

```

配置
--

[](#配置)

1. 添加下面一行到 `config/app.php` 中 `providers` 部分：

    ```
    Sanlilin\LaravelUEditorPlus\UEditorPlusServiceProvider::class,
    ```
2. 发布配置文件与资源

    ```
    $ php artisan vendor:publish --provider='Sanlilin\LaravelUEditorPlus\UEditorPlusServiceProvider'
    ```
3. 模板引入编辑器

    这行的作用是引入编辑器需要的 css,js 等文件，所以你不需要再手动去引入它们。

    ```
    @include('vendor.ueditor-plus.assets')
    ```
4. 编辑器的初始化

    ```

        var ue = UE.getEditor('container');
        ue.ready(function() {
            ue.execCommand('serverparam', '_token', '{{ csrf_token() }}'); // 设置 CSRF token.
        });

    ```

说明
==

[](#说明)

1. laravel5+ 请不要忘记 `php artisan storage:link`
2. 在 `config/ueditor-plus.php` 配置 `disk` 为 `'public'` 情况下，上传路径在：`public/uploads/` 下，确认该目录存在并可写。
3. 如果要修改上传路径，请在 `config/ueditor-plus.php` 里各种类型的上传路径，但是都在 public 下。
4. 请在 `.env` 中正确配置 `APP_URL` 为你的当前域名，否则可能上传成功了，但是无法正确显示。

S3支持
----

[](#s3支持)

1. 配置 `config/ueditor-plus.php` 的 `disk` 为 `s3`:

```
'disk' => 's3'
```

事件
--

[](#事件)

### 上传中

[](#上传中)

> Sanlilin\\LaravelUEditorPlus\\Events\\Uploading

在保存文件之前，你可以拿到一些信息：

- `$event->file` 这是请求的已经上传的文件对象，`Symfony\Component\HttpFoundation\File\UploadedFile` 实例。
- `$event->filename` 这是即将存储时用的新文件名
- `$event->config` 上传配置，数组。

你可以在本事件监听器返回值，返回值将替换 `$filename` 作为存储文件名。

### 上传完成

[](#上传完成)

> Sanlilin\\LaravelUEditorPlus\\Events\\Uploaded

它有两个属性：

- `$event->file` 与 Uploading 一样，上传的文件
- `$event->result` 上传结构，数组，包含以下信息：

    ```
    'state' => 'SUCCESS',
    'url' => 'http://xxxxxx.qiniucdn.com/xxx/xxx.jpg',
    'title' => '文件名.jpg',
    'original' => '上传时的源文件名.jpg',
    'type' => 'jpg',
    'size' => 17283,
    ```

你可以监听此事件用于一些后续处理任务，比如记录到数据库。

License
=======

[](#license)

MIT

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Recently: every ~24 days

Total

7

Last Release

1078d ago

Major Versions

1.0.0 → 2.0.12023-02-23

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/sanlilin-laravel-ueditor-plus/health.svg)

```
[![Health](https://phpackages.com/badges/sanlilin-laravel-ueditor-plus/health.svg)](https://phpackages.com/packages/sanlilin-laravel-ueditor-plus)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)[php-junior/laravel-video-chat

Laravel Video Chat using Socket.IO and WebRTC

82018.1k](/packages/php-junior-laravel-video-chat)[vcian/pulse-active-sessions

A Laravel Pulse card to show active user session.

11469.2k](/packages/vcian-pulse-active-sessions)[splitsoftware/split-sdk-php

Split SDK for PHP

161.3M2](/packages/splitsoftware-split-sdk-php)[vwo/vwo-php-sdk

VWO server side sdk

12166.4k](/packages/vwo-vwo-php-sdk)

PHPackages © 2026

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