PHPackages                             yurunsoft/mddoc - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yurunsoft/mddoc

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

yurunsoft/mddoc
===============

use php to build markdown doc

v1.2.9(3y ago)521458MITPHPPHP &gt;=7.1.0

Since Jun 22Pushed 2y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (3)Versions (14)Used By (0)

介绍
==

[](#介绍)

mddoc 是一个开源的 markdown 文档转 html 文档工具，它使用 php 开发，支持 php &gt;= 5.4。它生成的 html 可以直接放在网站上，支持全文搜索、自定义 html 模版。

mddoc 同时支持命令行、git webhook生成，不光可以本地生成后上传，也可以直接做成 webhook 自动部署生成，非常简单。

mddoc 兼容 GitBook Editor 编辑的格式，可以说 mddoc 是不想装 Node 环境又想使用 gitbook 的用户的一个非常好的选择。

其实我开发 mddoc 的本意，其实是因为我用的虚拟主机，不能装 Node 环境。想要实现 webhook 自动生成比较困难，所以就用 php 写了这个……

具体效果你现在看的这个文档就是使用 mddoc 生成哒！（  ）

Github：

Gitee：

composer：`yurunsoft/mddoc`

命令行生成
-----

[](#命令行生成)

1. 首先通过 git 将项目拉取下来
2. 执行`composer update`安装
3. 执行`php build.php -markdownPath "md文档路径" -htmlPath "html生成路径"`

> 注意！html生成目录在生成前会被清空所有文件，请慎重选择目录！

默认生成使用的模版是`mddoc/template`下的，如果要指定自定义的模版路径，加上参数`-templatePath "路径"`

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Recently: every ~36 days

Total

13

Last Release

1304d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.4.0

v1.2.0PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f917bb42280d114c53cebadc2942a13ee03abe14971089f88895e266d637169?d=identicon)[Yurunsoft](/maintainers/Yurunsoft)

---

Top Contributors

[![Yurunsoft](https://avatars.githubusercontent.com/u/20104656?v=4)](https://github.com/Yurunsoft "Yurunsoft (66 commits)")

---

Tags

gitbookmarkdownmarkdown-to-htmlphpwebhook

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/yurunsoft-mddoc/health.svg)

```
[![Health](https://phpackages.com/badges/yurunsoft-mddoc/health.svg)](https://phpackages.com/packages/yurunsoft-mddoc)
```

###  Alternatives

[steelywing/chinese

中文繁簡轉換 Convert Traditional and Simplified Chinese

3875.8k2](/packages/steelywing-chinese)

PHPackages © 2026

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