2017 © Pedro Peláez
 

library ueditor-thinkphp

Ueditor upload file SDK for ThinkPHP

image

tanzhenxing/ueditor-thinkphp

Ueditor upload file SDK for ThinkPHP

  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 133 % Grown

The README.md

百度UEditor 上传插件包使用说明 Composer 安装:
composer require tanzhenxing/ueditor-thinkphp, (*1)

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;
}

The Versions

19/04 2018

dev-master

9999999-dev http://ueditor.baidu.com/website/

Ueditor upload file SDK for ThinkPHP

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

upload thinkphp ueditor

18/04 2018

1.02

1.02.0.0 http://ueditor.baidu.com/website/

Ueditor upload file SDK for ThinkPHP

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

upload thinkphp ueditor

18/04 2018

1.01

1.01.0.0 http://ueditor.baidu.com/website/

Ueditor upload file SDK for ThinkPHP

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

upload thinkphp ueditor