PHPackages                             vrobin/laravel-u-editor - 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. [Templating &amp; Views](/categories/templating)
4. /
5. vrobin/laravel-u-editor

ActiveLibrary[Templating &amp; Views](/categories/templating)

vrobin/laravel-u-editor
=======================

UEditor for laravel5. Support i18n. UEditor is a Rich Text Web Editor From Baidu.

v2.0.2(6y ago)060MITJavaScriptPHP &gt;=5.4.0

Since Feb 21Pushed 6y ago1 watchersCompare

[ Source](https://github.com/health901/laravel-u-editor)[ Packagist](https://packagist.org/packages/vrobin/laravel-u-editor)[ RSS](/packages/vrobin-laravel-u-editor/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (1)Versions (16)Used By (0)

Laravel 5 UEditor
=================

[](#laravel-5--ueditor)

[UEditor](http://ueditor.baidu.com) 是由百度web前端研发部开发所见即所得富文本web编辑器

此包为laravel5的支持,新增多语言配置,可自由部署前端代码,默认基于 UEditor 1.4.3.3

UEditor 前台文件完全无修改,可自由gulp等工具部署到生产环境

根据系统的config.app.locale自动切换多语言. 暂时只支持 en,zh\_CN,zh\_TW

使用laravel filesystems进行文件管理

\##ChangeLog

v2.0.2 实现远程图片抓取,兼容微信公众号图片

v2.0.1 实现上传

v2.0.0 fork from `stevenyangecho/laravel-u-editor`

1.4.0 版 支持 laravel5.3 更新百度 UEditor 1.4.3.3

重要提示
----

[](#重要提示)

有些同学配置总是不成功,除了一般设置,权限等基础问题,很大的可能是 middleware和 csrf 没配置好. 因为这两点对于服务器的安全至关重要,因此都是必须配置正确的,否则无法运行. 如何配置需要一定基础,对于看完且理解L5官方文档的同学,应该都有此基础.

Installation
------------

[](#installation)

[PHP](https://php.net) 5.4+ , and [Composer](https://getcomposer.org) are required.

To get the latest version of Laravel Exceptions, simply add the following line to the require block of your `composer.json` file:

```
"vrobin/laravel-u-editor": "~2.0"

```

You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.

Once Laravel Exceptions is installed, you need to register the service provider. Open up `config/app.php` and add the following to the `providers` key.

- `'VRobin\UEditor\UEditorServiceProvider'`

then run

- `php artisan vendor:publish`

配置
--

[](#配置)

若以上安装没问题,自定义项目配置文件会在 config/laravel-u-editor.php (会自动生成)

```
    'core' => [
        'route' => [
            'middleware' => 'auth',
        ],
    ],

```

middleware 相当重要,请根据自己的项目设置,比如如果在后台使用,请设置为后台的auth middleware. 如果是单纯本机测试,请将 `// 'middleware' => 'auth',` 直接注释掉,如果留 `'middleware'=>''`空值,会产生bug,原因不详.

所有UEditor 的官方资源,会放在 public/laravel-u-editor/ ,可以根据自己的需求,更改.

Usage
-----

[](#usage)

in your &lt;head&gt; block just put

```
@include('UEditor::head');

```

it will require assets.

if need,u can change the resources\\views\\vendor\\UEditor\\head.blade.php to fit your customization .

ok,all done.just use the UEditor.

```

    这里写你的初始化内容

    var ue = UE.getEditor('container');
        ue.ready(function() {
        ue.execCommand('serverparam', '_token', '{{ csrf_token() }}');//此处为支持laravel5 csrf ,根据实际情况修改,目的就是设置 _token 值.
    });

```

The detail useage Please see

TODO
----

[](#todo)

1. 跨域上传

License
-------

[](#license)

Laravel 5 UEditor is licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 84.6% 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 ~113 days

Recently: every ~241 days

Total

15

Last Release

2504d ago

Major Versions

v1.4.2 → v2.0.12019-05-17

### Community

Maintainers

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

---

Top Contributors

[![stevenyangecho](https://avatars.githubusercontent.com/u/5569554?v=4)](https://github.com/stevenyangecho "stevenyangecho (33 commits)")[![health901](https://avatars.githubusercontent.com/u/1503105?v=4)](https://github.com/health901 "health901 (2 commits)")[![osindex](https://avatars.githubusercontent.com/u/4703215?v=4)](https://github.com/osindex "osindex (2 commits)")[![vincent067](https://avatars.githubusercontent.com/u/10589818?v=4)](https://github.com/vincent067 "vincent067 (1 commits)")[![whisky-rye](https://avatars.githubusercontent.com/u/16221519?v=4)](https://github.com/whisky-rye "whisky-rye (1 commits)")

---

Tags

laravelueditorlaravel-u-editorlaravel5 web text editor

### Embed Badge

![Health badge](/badges/vrobin-laravel-u-editor/health.svg)

```
[![Health](https://phpackages.com/badges/vrobin-laravel-u-editor/health.svg)](https://phpackages.com/packages/vrobin-laravel-u-editor)
```

###  Alternatives

[stevenyangecho/laravel-u-editor

UEditor for laravel5. Support i18n. UEditor is a Rich Text Web Editor From Baidu.

30990.7k2](/packages/stevenyangecho-laravel-u-editor)

PHPackages © 2026

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