PHPackages                             yuanbo/apidoc - 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. yuanbo/apidoc

ActiveThink-extend[API Development](/categories/api)

yuanbo/apidoc
=============

thinkphp API文档自动生成

v3.2.2(3y ago)0437MITPHPPHP &gt;=7.1.0

Since Sep 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/aron0524/yb-apidoc)[ Packagist](https://packagist.org/packages/yuanbo/apidoc)[ RSS](/packages/yuanbo-apidoc/feed)WikiDiscussions main Synced today

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

 [![](https://camo.githubusercontent.com/085ef2f041b154b199b3bc4d3e641ba8b581b456e3647359339365e110f19a6d/68747470733a2f2f617069646f632e64656d6f2e68672d636f64652e636f6d2f696d616765732f6c6f676f2e706e67)](https://camo.githubusercontent.com/085ef2f041b154b199b3bc4d3e641ba8b581b456e3647359339365e110f19a6d/68747470733a2f2f617069646f632e64656d6f2e68672d636f64652e636f6d2f696d616765732f6c6f676f2e706e67)

 ThinkPHP ApiDoc
=================

[](#--thinkphp-apidoc)

基于ThinkPHP 根据注释自动生成API接口文档

[![](https://camo.githubusercontent.com/a2dd63843a0083bb13e7ba583b98af7247deb0f5594e7369afd1a4026b22ac7a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68672f617069646f63)](https://packagist.org/packages/hg/apidoc)[![](https://camo.githubusercontent.com/41cef39ba980fdca314ffb1ac412e7182957dead120d42ffb0bed31da4f721b1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68672f617069646f63)](https://packagist.org/packages/hg/apidoc)[![](https://camo.githubusercontent.com/bc5f8472863383705d29e5994289fbf3e8b5cb770899018ddcb6686b52330013/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f68672f617069646f63)](https://packagist.org/packages/hg/apidoc)[![](https://camo.githubusercontent.com/a815c31b27d851aa0a17bfb65e09f716ab675558c3b8c68f4725b82c5e85f327/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f4847746865636f64652f7468696e6b7068702d617069646f63)](https://github.com/HGthecode/thinkphp-apidoc)[![](https://camo.githubusercontent.com/95889f6e9a9a62c805fdee55b2056d1edcd8661616f1b1a0e4b1814f83393362/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f4847746865636f64652f7468696e6b7068702d617069646f63)](https://github.com/HGthecode/thinkphp-apidoc)

🤷‍♀️ Apidoc是什么？
---------------

[](#‍️-apidoc是什么)

如今，前后端分离的开发模式以必不可少，基于ThinkPHP可以很方便的作为后端Api的开发。可是一个Api开发过程中需要快速调试，开发完成后需要给其它开发者对接，这时一个详细的Api文档，就显得特别重要。

大多数开发者可能都是通过各种工具配合来达到这一目的，其各种工具的安装和配置也是繁琐。甚至还有通过word等文本工具手写api文档的，这样的开发效率与可维护性是非常差的。

综合种种Api开发中的痛点，我们专为ThinkPHP开发了Apidoc的扩展插件，本插件可通过简单的注解即可生成Api文档，及帮助开发者提高生产效率的在线调试、快速生成Crud、一键生成整个模块Api等，涵盖Api开发方方面面。

✨特性
---

[](#特性)

- 开箱即用：无繁杂的配置、安装后按文档编写注释即可自动生成API文档。
- 在线调试：在线文档可直接调试，支持设置全局参数，接口调试省时省力。
- 轻松编写：支持公共注释定义、业务逻辑层、数据表字段的引用，几句注释即可完成。
- 安全高效：支持访问密码验证、应用/版本独立密码；支持文档缓存。
- 多应用/多版本：可适应各种单应用、多应用、多版本的项目的Api管理。
- Markdown文档：支持.md文件的文档展示。
- 快速生成Crud：配置+模板即可快速生成Crud接口代码及数据表的创建，大大提高工作效率。
- 控制器分组：更精细化的对控制器接口进行分组展示。

📌兼容
---

[](#兼容)

ThinkPHP 5.x

ThinkPHP 6.x

> 📢 2.6.0版本开始全面兼容TP5了啦~~~

📖使用文档
-----

[](#使用文档)

[ThinkPHP ApiDoc V2.x文档](https://hg-code.gitee.io/thinkphp-apidoc/)

🏆支持我们
-----

[](#支持我们)

如果本项目对您有所帮助，请点个Star支持我们

- [Github](https://github.com/HGthecode/thinkphp-apidoc) -&gt; [![Star me on GitHub](https://camo.githubusercontent.com/3c4e6870a037d16ca2b10f9b4c2ff0cfd4c50fe833e2f21e2097c8c102495981/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f4847746865636f64652f7468696e6b7068702d617069646f633f7374796c653d736f6369616c)](https://github.com/HGthecode/thinkphp-apidoc)
- [Gitee](https://gitee.com/hg-code/thinkphp-apidoc) -&gt; [![star](https://camo.githubusercontent.com/cbbf72135870e90685ce43eca201df19dc639b656ffe14ea2331a251782de84f/68747470733a2f2f67697465652e636f6d2f68672d636f64652f7468696e6b7068702d617069646f632f62616467652f737461722e737667)](https://gitee.com/hg-code/thinkphp-apidoc/stargazers)

💡鸣谢
---

[](#鸣谢)

[ThinkPHP](http://www.thinkphp.cn/)[ThinkPHP](http://www.thinkphp.cn/)

[doctrine/annotations](https://github.com/doctrine/annotations)

🔗链接
---

[](#链接)

[ApiDoc UI前端](https://github.com/HGthecode/apidoc-ui)

[ApiDoc Demo 示例项目](https://github.com/HGthecode/thinkphp-apidoc-demo)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~15 days

Recently: every ~47 days

Total

22

Last Release

1392d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/da6fdf1d856a926531d3692390f9fd6d5fdbf55c6b6f3e2f985723b3e6e06eaa?d=identicon)[aron0524](/maintainers/aron0524)

---

Top Contributors

[![aron0524](https://avatars.githubusercontent.com/u/10445866?v=4)](https://github.com/aron0524 "aron0524 (2 commits)")

---

Tags

phpapimarkdownthinkphpapidocPHP-API

### Embed Badge

![Health badge](/badges/yuanbo-apidoc/health.svg)

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

###  Alternatives

[hg/apidoc-thinkphp

thinkphp API文档自动生成

1311.8k](/packages/hg-apidoc-thinkphp)[hg/apidoc

根据注解生成API文档，兼容Laravel、ThinkPHP、Hyperf、Webman等框架；在线调试、Markdown文档、多应用/多版本、Mock数据、授权访问、接口生成器、代码生成器等众多实用功能

22485.8k1](/packages/hg-apidoc)[allure-framework/allure-php-api

Allure PHP commons

3411.1M7](/packages/allure-framework-allure-php-api)

PHPackages © 2026

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