PHPackages                             norieli/laravel-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. [API Development](/categories/api)
4. /
5. norieli/laravel-ueditor

ActiveL[API Development](/categories/api)

norieli/laravel-ueditor
=======================

for laravel api, use baidu ueditor, with aliyun oss.

v1.0(6y ago)012ApachePHPPHP &gt;=7.0

Since Apr 16Pushed 6y ago1 watchersCompare

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

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

laravel-ueditor
===============

[](#laravel-ueditor)

laravel api &amp; baidu ueditor &amp; aliyun oss

填坑百度，终呈于此。

Inspired By
-----------

[](#inspired-by)

- [thephpleague/flysystem-aws-s3-v2](https://github.com/thephpleague/flysystem-aws-s3-v2)
- [apollopy/flysystem-aliyun-oss](https://github.com/apollopy/flysystem-aliyun-oss)
- [jacobcyl/ali-oss-storage](https://github.com/jacobcyl/Aliyun-oss-storage)
- [front-end-static-source](https://github.com/HaoChuan9421/vue-ueditor-wrap)

Require
-------

[](#require)

- Laravel 5+
- cURL extension
- php 7.0+

Important
---------

[](#important)

- No Baidu original front-end static source ！！！

Installation Back-End
---------------------

[](#installation-back-end)

- step 1:

In order to install AliOSS-storage, just add

```
"norieli/laravel-ueditor": "^1.0"

```

to your composer.json. Then run `composer install` or `composer update`.
Or you can simply run below command to install:

```
"composer require norieli/laravel-ueditor:^1.0"

```

- step 2:

copy :

```
"yourproject/vendor/norieli/laravel-ueditor/src/config.php"

```

to

```
"yourproject/config/ueditor.php"

```

and change to your own config

- step 3:

add to routes

```
// ueditor get
Route::get('/ueditor',function ()
{
    return (new \Norie\Laravel\UE\Controller())->do();
});
// ueditor get
Route::middleware(['auth:api'])->post('/ueditor',function ()
{
    return (new \Norie\Laravel\UE\Controller())->do();
});
```

- step 4 (if you need aliyun OSS):

1. In your `config/app.php` add this line to providers array:

```
Jacobcyl\AliOSS\AliOssServiceProvider::class,
```

2. Add the following in app/filesystems.php:

```
'disks'=>[
    ...
    'oss' => [
            'driver'        => 'oss',
            'access_id'     => '',
            'access_key'    => '',
            'bucket'        => '',
            'endpoint'      => '', // OSS 外网节点或自定义外部域名
            //'endpoint_internal' => '', // v2.0.4 新增配置属性，如果为空，则默认使用 endpoint 配置(由于内网上传有点小问题未解决，请大家暂时不要使用内网节点上传，正在与阿里技术沟通中)
            'cdnDomain'     => '', // 如果isCName为true, getUrl会判断cdnDomain是否设定来决定返回的url，如果cdnDomain未设置，则使用endpoint来生成url，否则使用cdn
            'ssl'           =>  // true to use 'https://' and false to use 'http://'. default is false,
            'isCName'       =>  // 是否使用自定义域名,true: 则Storage.url()会使用自定义的cdn或域名生成文件url， false: 则使用外部节点生成url
            'debug'         =>
    ],
    ...
]
```

3. Then set the default driver in app/filesystems.php:

```
'default' => 'oss',
```

Well! the Back-end is done!

Installation Back-End
---------------------

[](#installation-back-end-1)

- step 1:

See [vue-ueditor](https://github.com/HaoChuan9421/vue-ueditor-wrap) to learn more.

If you not use vue, you can download this static resouce. [download](https://github.com/HaoChuan9421/vue-ueditor-wrap/blob/master/assets/downloads/utf8-php.zip)

- step 2 (If you need auth. if not, remove auth midleware in routes):

Whatever you choose. You also change 4 fiels to add http request hearder.

1. static/UE/dialogs/image/image.js
2. static/UE/dialogs/image/image.js
3. static/UE/dialogs/video/video.js

the same code area

```
 uploader.on('uploadBeforeSend', function (file, data, header) {
        //这里可以通过data对象添加POST参数
        header['X_Requested_With'] = 'XMLHttpRequest';
        // like this
        header['Authorization'] = 'Bearer ' + localStorage.getItem('token');
    });
```

4. static/UE/ueditor.all.js

```
var xhr = new XMLHttpRequest()
    xhr.open('post', action, true)
    // like this
    xhr.setRequestHeader('Authorization', 'Bearer ' + localStorage.getItem('token'));
    if (me.options.headers && Object.prototype.toString.apply(me.options.headers) === "[object Object]") {
    for (var key in me.options.headers) {
      xhr.setRequestHeader(key, me.options.headers[key])
    }
}
```

5. static/UE/ueditor.config.js

```
    // 服务器统一请求接口路径
    , serverUrl: URL + "/api/ueditor"
```

Well! The both done!

Something
---------

[](#something)

[Welcome to issue questions](https://github.com/norieli/laravel-ueditor/issues)

Documentation
-------------

[](#documentation)

More development detail see [Aliyun OSS DOC](https://help.aliyun.com/document_detail/32099.html?spm=5176.doc31981.6.335.eqQ9dM)

License
-------

[](#license)

Source code is release under MIT license. Read LICENSE file for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

2218d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4dcb0032812fdc7acfbad7bc5e1934b926566e4d1dda7275b5899f4d6d27f665?d=identicon)[norie](/maintainers/norie)

---

Top Contributors

[![norieli](https://avatars.githubusercontent.com/u/24472067?v=4)](https://github.com/norieli "norieli (3 commits)")

---

Tags

apilaravelaliyunueditoross

### Embed Badge

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

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

###  Alternatives

[joisarjignesh/bigbluebutton

BigBlueButton Server API Library for Laravel

162145.5k1](/packages/joisarjignesh-bigbluebutton)[d-scribe/laraquick

A collection of classes to be extended/used in laravel applications for quick development

371.8k1](/packages/d-scribe-laraquick)

PHPackages © 2026

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