PHPackages                             axhello/laravel-markdown-editor - 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. axhello/laravel-markdown-editor

ActiveLibrary

axhello/laravel-markdown-editor
===============================

Based on the markdown editor laravel 5

41781[1 issues](https://github.com/Axhello/laravel-markdown-editor/issues)JavaScript

Since Apr 1Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Axhello/laravel-markdown-editor)[ Packagist](https://packagist.org/packages/axhello/laravel-markdown-editor)[ RSS](/packages/axhello-laravel-markdown-editor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-markdown-editor
=======================

[](#laravel-markdown-editor)

一个基于 laravel 5 的markdown 编辑器

本项目基于 [editor.md](https://github.com/pandao/editor.md/) 二次开发完成

\#使用详细教程 Editor.md:

\#Installation

1.在 composer.json 的 require里 加入

```
"axhello/laravel-markdown-editor": "dev-master"

```

2.执行 composer update

3.在config/app.php 的 providers 数组加入一条

```
Axhello\Editor\MDEditorServiceProvider::class

```

4.在config/app.php 的 aliases 数组加入一条

```
'MDEditor' => Axhello\Editor\Facade\MDEditorFacade::class,

```

5.执行 `php artisan vendor:publish`

执行完上面的命令后，会生成配置文件和视图文件到你的 config/ 和 views/vendor 目录

\#Usage 1.在需要编辑器的地方插入以下代码

首先引入head代码

```
@include('editor::head')

```

然后用一个id为`mdEditor`的标签包裹着textarea

```

	{!! Form::textarea('content', null, ['class' => 'form-control') !!}

//或者是这样

```

然后刷新页面，这时候编辑器就出来了！

2.配置图片上传，打开config/editor.php 配置文件，修改里面的 uploadUrl 配置项

例如我更改editor.php的Url为

```
'uploadUrl'=>'post/uploads'

```

然后在路由中配置Url,注意`uploads`为你 public 下的目录

```
Route::post('/post/uploads', function (){
    $data = \Axhello\Editor\MdEditor::uploadImgFile('uploads');
    return json_encode($data);
});

```

**完成以上这些配置，你就可以在线插入图片啦**

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d0fb284351862e5b9b88f69776d1f846b43cb39d038fec52b111a89b627337a?d=identicon)[Axhello](/maintainers/Axhello)

---

Top Contributors

[![axhello](https://avatars.githubusercontent.com/u/10368684?v=4)](https://github.com/axhello "axhello (12 commits)")

### Embed Badge

![Health badge](/badges/axhello-laravel-markdown-editor/health.svg)

```
[![Health](https://phpackages.com/badges/axhello-laravel-markdown-editor/health.svg)](https://phpackages.com/packages/axhello-laravel-markdown-editor)
```

PHPackages © 2026

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