2017 © Pedro Peláez
 

library ueditor-upload-php-sdk

Ueditor upload file SDK for PHP

image

masterton/ueditor-upload-php-sdk

Ueditor upload file SDK for PHP

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 15 % Grown

The README.md

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

29/09 2017

1.0.x-dev

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

Ueditor upload file SDK for PHP

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

upload sdk ueditor

29/09 2017

dev-master

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

Ueditor upload file SDK for PHP

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

upload sdk ueditor

29/09 2017

1.0.0

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

Ueditor upload file SDK for PHP

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

upload sdk ueditor

29/09 2017

1.0.0.x-dev

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

Ueditor upload file SDK for PHP

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

upload sdk ueditor