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

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

tanzhenxing/ueditor-thinkphp
============================

Ueditor upload file SDK for ThinkPHP

1.02(8y ago)61255MITPHPPHP &gt;=5.5.0

Since Apr 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/tanzhenxing/ueditor-thinkphp)[ Packagist](https://packagist.org/packages/tanzhenxing/ueditor-thinkphp)[ Docs](http://ueditor.baidu.com/website/)[ RSS](/packages/tanzhenxing-ueditor-thinkphp/feed)WikiDiscussions master Synced 3d ago

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

百度UEditor 上传插件包使用说明 Composer 安装：
composer require tanzhenxing/ueditor-thinkphp

UEditor php 上传文件封装
==================

[](#ueditor-php-上传文件封装)

### 使用：

[](#使用)

```
use Ueditor\Ueditor;

$ueditor = new Ueditor();

switch ($action) {
	case 'config':
        $result = $ueditor->getConfig();
        break;

    /* 上传图片 */
    case 'uploadimage':
    	$result = $ueditor->uploadImage()->saveImage();
    	break;
    /* 上传涂鸦 */
    case 'uploadscrawl':
    	$result = $ueditor->uploadImage()->saveScrawl();
    	break;
    /* 上传视频 */
    case 'uploadvideo':
    	$result = $ueditor->uploadImage()->saveVideo();
    	break;
    /* 上传文件 */
    case 'uploadfile':
        $result = $ueditor->uploadImage()->saveFile();
        break;

    /* 列出图片 */
    case 'listimage':
    	$start = array_get($params, 'start');
    	$size = array_get($params, 'size');
        $result = $ueditor->listImage()->getListImage($start, $size);
        break;
    /* 列出文件 */
    case 'listfile':
    	$start = array_get($params, 'start');
    	$size = array_get($params, 'size');
        $result = $ueditor->listFile()->getListFile($start, $size);
        break;

    /* 抓取远程文件 */
    case 'catchimage':
        $result = $ueditor->catchImage()->crawlerImage();
        break;

    default:
        $result = [
            'state'=> '请求地址出错'
        ];
        break;
}

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

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

Total

2

Last Release

2948d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/749240ab8dac4f8af89d56f4952ec402157f411f51763a37dd425174d49d3738?d=identicon)[tanzhenxing](/maintainers/tanzhenxing)

---

Top Contributors

[![tanzhenxing](https://avatars.githubusercontent.com/u/11799226?v=4)](https://github.com/tanzhenxing "tanzhenxing (21 commits)")

---

Tags

thinkphpthinkphp5ueditoruploadueditorthinkphp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[vich/uploader-bundle

Ease file uploads attached to entities

1.9k25.9M116](/packages/vich-uploader-bundle)[marrouchi/upload-crop-image-bundle

Basic server side cropping behavior for Symfony2

121.1k](/packages/marrouchi-upload-crop-image-bundle)

PHPackages © 2026

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