PHPackages                             zhuzhichao/ueditor - 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. zhuzhichao/ueditor

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

zhuzhichao/ueditor
==================

Ueditor for laravel

v1.0.0(11y ago)213.1k4[1 issues](https://github.com/zhuzhichao/Ueditor/issues)JavaScriptPHP &gt;=5.4.0

Since Jan 12Pushed 11y ago3 watchersCompare

[ Source](https://github.com/zhuzhichao/Ueditor)[ Packagist](https://packagist.org/packages/zhuzhichao/ueditor)[ RSS](/packages/zhuzhichao-ueditor/feed)WikiDiscussions master Synced today

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

\#Ueditor for laravel 4

`Ueditor for laravel 4` 对于国内最好用的富文本web编辑器[ueditor](http://ueditor.baidu.com/website/onlinedemo.html)的封装，方便使用 `laravel` 的朋友能够快速配置和使用，以及在线更新编辑器。

\##特点

1. 方便配置
2. 随时更新
3. 使用[composer](https://getcomposer.org/)进行安装管理，国际标准，方便快捷

\##Install 这里不详细介绍如何安装composer了，大家根据[链接](https://getcomposer.org/)自行安装吧！

命令行下直接 `composer require "zhuzhichao/ueditor"` ，版本的话无特殊需求则选择 `dev-master`，当前使用的Ueditor版本为1.4.3

\##Config 1.在 `app/config/app.php` 的 `providers` 数组中添加

```
'Zhuzhichao\Ueditor\UeditorServiceProvider',
```

`aliases` 数组中添加

```
'Ueditor'        => 'Zhuzhichao\Ueditor\Ueditor',
```

**同时请确保 app.php 中`url` 的值为web的地址, 同时别忘了`composer dumpautoload`**

2.命令行下执行如下命令

```
php artisan config:publish zhuzhichao/ueditor
php artisan asset:publish zhuzhichao/ueditor
```

3.配置文件的修改: 需要个性配置请到这里修改 app/config/packages/zhuzhichao/ueditor/config.php

4.终于配置完成了

\##Use 1.这里封装了以下方法可以方便大家添加编辑器的css和js，以及编辑器，直接在 `blade` 的模版中使用

```
// 添加css样式
{{ Ueditor::css() }}
```

```
// 添加编辑器样式
// 该方法有两个参数，
// 第一个为显示的编辑器内容【可选】
// 第二个为编辑器的attribute数组，可以控制编辑器的id,style,class等内容【可选】，默认id为myEditor
// example: Ueditor::content('', ['id'=>'textid', 'class'=>'text-ueditor'])
{{ Ueditor::content() }}
// 得到
```

```
// 添加js
{{ Ueditor::js() }}
```

```
// 添加自己的JS代码，初始化编辑器
var ue = UE.getEditor('editor');
```

2.文件的上传位置为 `public/upload` 文件夹下，请确保有写入权限

3.好嘞，终于大功告成，你可以参考[这里](http://ueditor.baidu.com/website/onlinedemo.html)来使用编辑器的一些方法了。

\##Bug 如果你遇到了问题，可以先尝试 `composer update` 来更新一下。如果问题依旧，请提交[issue](https://github.com/zhuzhichao/Ueditor/issues)，我会及时回复。当然如果你能提交[Pull Requests](https://github.com/zhuzhichao/Ueditor/pulls)更好，^^

\##Contributing 有什么新的想法和建议，欢迎提交[issue](https://github.com/zhuzhichao/Ueditor/issues)或者[Pull Requests](https://github.com/zhuzhichao/Ueditor/pulls)。

\##License MIT

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

4146d ago

### Community

Maintainers

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

---

Top Contributors

[![zhichao-poper](https://avatars.githubusercontent.com/u/141097055?v=4)](https://github.com/zhichao-poper "zhichao-poper (8 commits)")

### Embed Badge

![Health badge](/badges/zhuzhichao-ueditor/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M375](/packages/illuminate-redis)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)

PHPackages © 2026

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