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

ActiveLibrary

bingher/ueditor
===============

ueditor for thinkphp6

v1.2.7(4y ago)208264[4 issues](https://github.com/hbh112233abc/ueditor/issues)[1 PRs](https://github.com/hbh112233abc/ueditor/pulls)MITPHP

Since Apr 5Pushed 4y ago2 watchersCompare

[ Source](https://github.com/hbh112233abc/ueditor)[ Packagist](https://packagist.org/packages/bingher/ueditor)[ RSS](/packages/bingher-ueditor/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (10)Dependencies (5)Versions (14)Used By (0)

bingher/ueditor
===============

[](#bingherueditor)

> thinkphp6 ueditor 插件

安装
--

[](#安装)

```
composer require bingher/ueditor

```

资源及数据库配置
--------

[](#资源及数据库配置)

```
php think ueditor:publish
php think migrate:run

```

以上操作将会复制静态资源文件到`/public/static/bingher/ueditor`目录下,在数据库中创建`ueditor_config`配置表

配置
--

[](#配置)

配置文件`config/ueditor.php`

```
    // 上传大小限制，单位B  102400=100KB, 512000=500KB,1048576=1M
    'max_image_size'         => 1048576,
    // 上传大小限制，单位B，默认100MB
    'max_vedio_size'         => 102400000,
    // 上传大小限制，单位B，默认50MB
    'max_file_size'          => 51200000,
    // 0 不做缩略图,缩略图模式参考\think\Image::THUMB_*常量
    'thumb_type'             => 1,
    //缩略图图片清晰度设置，默认是80
    'thumb_image_quality'    => 80,
    //获取图片宽高的最大限制值，0为不限制
    'thumb_max_width_height' => 680,
    //是否加水印(0:无水印,1:水印文字,2:水印图片
    'water'                  => 0,
    //水印文
    'water_text'             => '',
    //水印位置,默认右下角 参考\think\Image::WATER_*常量
    'water_position'         => 9,
    //水印图片路
    'water_image'            => '',
    //上传表单字段
    'upload_field_name'      => 'upfile',
    //用户session账号i
    'session_uid_key'        => 'uid',
    //超级管理员uid
    'super_admin_uid'        => 'admin',
    //磁盘类型
    'filesystem_type'        => 'local',
    //磁盘路径
    'filesystem_root'        => app()->getRootPath() . 'public/upload',
    //磁盘路径对应的外部URL路径
    'filesystem_url'         => '/upload',
    //权限控制函数
    'auth_control'           => 'check_uid',

```

如果有做数据迁移,将以数据库中的`ueditor_config`配置为主,你可以访问`http://你的域名/ueditor/setting/index`进行配置,示例: [![配置页面](./assets/images/setting.png)](./assets/images/setting.png)

> 使用独立配置的`filesystem`配置`config/filesystem.php`增加`ueditor`的配置项,示例:

```
return [
    'default' => 'local',
    'disks'   => [
        ...
        'ueditor' => [
            'type'         => 'aliyun',
            'accessId'     => 'aliyun OSS accessId',
            'accessSecret' => 'aliyun OSS accessSecret',
            'endpoint'     => 'aliyun OSS endpoint',
            'bucket'       => 'aliyun OSS bucket',
            'url'          => 'aliyun OSS url', //不要斜杠结尾，此处为URL地址域名。
        ],

```

> 以上配置引用了`thans/thinkphp-filesystem-cloud`,请自行安装

```
composer require thans/thinkphp-filesystem-cloud

```

你也可以在你的网站管理后台的某个系统设置的页面模板中使用`{:ue_setting()}`就可以自动生成以上的表单进行配置了

使用
--

[](#使用)

在模板文件中需要引入的地方加入以下代码

```
{:ue_view()}

```

ue\_view方法如下:

```
function ue_view(string $name = 'ueditor',string $content = '',array $config = []){...}

```

参数说明$name生成的插件id及表单提交字段name,默认ueditor,同一个页面需要多个ueditor,需要分别设定$content初始化内容,在需要编辑的时候传入编辑文本内容$config配置项,参考ueditor.config.js> 注意事项 关闭`APP_DEBUG`(生产环境)后,默认会验证session(`session_uid_key`)是否有值,如果配置你的系统不是存储session('uid'),请自行配置对应的用于验证权限的键名,默认验证方法是`check_uid`,可以更改配置`auth_control`为验证权限的方法即可(注意bool类型的返回)

DEMO
----

[](#demo)

#### ue\_view

[](#ue_view)

> [http://你的域名/ueditor/demo/view](http://%E4%BD%A0%E7%9A%84%E5%9F%9F%E5%90%8D/ueditor/demo/view)

[![demo_ue_view](./assets/images/demo_ue_view.png)](./assets/images/demo_ue_view.png)

#### ue\_setting

[](#ue_setting)

> [http://你的域名/ueditor/demo/setting](http://%E4%BD%A0%E7%9A%84%E5%9F%9F%E5%90%8D/ueditor/demo/setting)

[![demo_ue_setting](./assets/images/demo_ue_setting.png)](./assets/images/demo_ue_setting.png)

开发
--

[](#开发)

- js压缩
    - vscode 安装minify
    - 在js页面执行`Minify`

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Total

13

Last Release

1603d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c1da3d6c4d29c7a57ccd6d492fadb30cdb3467a8f1517ca07babf87f73de54f?d=identicon)[hbh112233abc](/maintainers/hbh112233abc)

---

Top Contributors

[![hbh112233abc](https://avatars.githubusercontent.com/u/7788164?v=4)](https://github.com/hbh112233abc "hbh112233abc (64 commits)")

### Embed Badge

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

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

###  Alternatives

[jaguarjack/catchadmin

The CatchAdmin Background management

8962.6k](/packages/jaguarjack-catchadmin)[zoujingli/think-library

Library for ThinkAdmin

8569.8k18](/packages/zoujingli-think-library)[casbin/think-authz

An authorization library that supports access control models like ACL, RBAC, ABAC for ThinkPHP.

27918.5k6](/packages/casbin-think-authz)[zzstudio/think-addons

The ThinkPHP6 Addons Package

1518.6k](/packages/zzstudio-think-addons)[liliuwei/thinkphp-jump

适用于thinkphp6.0的跳转扩展

2874.4k1](/packages/liliuwei-thinkphp-jump)[rockys/e-admin

ThinkPhP E-admin

462.4k](/packages/rockys-e-admin)

PHPackages © 2026

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