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

ActiveLibrary[API Development](/categories/api)

czh9527/apidoc
==============

thinkphp API文档自动生成

v4.0(4y ago)03MITPHPPHP &gt;=7.1.0

Since Apr 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/czh9527/apidoc)[ Packagist](https://packagist.org/packages/czh9527/apidoc)[ RSS](/packages/czh9527-apidoc/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)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/c6c282120189d828415120aaa537abe821a0f83b8650326f7f9206bf29ea62a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f637a68393532372f617069646f63)](https://packagist.org/packages/czh9527/apidoc)[![](https://camo.githubusercontent.com/03b114159e014178ab51deab19f7995871f3f392bfe42572c243d94749697fa3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f637a68393532372f617069646f63)](https://packagist.org/packages/czh9527/apidoc)[![](https://camo.githubusercontent.com/b9b4fb06b5263e762ddff3247f46a548f4441be245ffd27d2324c61aaff47b7a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f637a68393532372f617069646f63)](https://packagist.org/packages/czh9527/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文档。
- 在线调试：在线文档可直接调试，支持全局参数、Mock调试数据、事件执行，接口调试省时省力。
- 轻松使用：支持公共注释定义、业务逻辑层、数据表字段等引用，几句注释即可完成。
- 安全高效：支持访问密码验证、应用/版本独立密码；支持文档缓存。
- 多应用/多版本：可适应各种单应用、多应用、多版本的项目的Api管理。
- Markdown文档：支持.md文件的文档展示。
- 控制器分组：支持控制器多级分组，更精细化管理接口目录。
- 多语言：可结合TP多语言能力，实现接口文档的语言切换。

📌兼容
---

[](#兼容)

ThinkPHP 5.1

ThinkPHP 6.x

📖使用文档
-----

[](#使用文档)

[ThinkPHP ApiDoc V3.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/)

[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

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Total

3

Last Release

1488d ago

Major Versions

v1.0 → v2.02022-04-13

v2.0 → v4.02022-04-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/54263ea722a83f893e22c8bdd82a1c32594055218df7c273c475fdcb9162c2f2?d=identicon)[czh9527](/maintainers/czh9527)

---

Top Contributors

[![czh9526](https://avatars.githubusercontent.com/u/165450082?v=4)](https://github.com/czh9526 "czh9526 (5 commits)")

### Embed Badge

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

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

###  Alternatives

[dingo/blueprint

API Blueprint documentation generator.

2707.8M22](/packages/dingo-blueprint)[darkaonline/swagger-lume

OpenApi or Swagger integration to Lumen

3372.3M3](/packages/darkaonline-swagger-lume)[allure-framework/allure-php-api

Allure PHP commons

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

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

22485.8k1](/packages/hg-apidoc)[flowpack/elasticsearch

This package provides wrapper functionality for the Elasticsearch engine.

34485.9k4](/packages/flowpack-elasticsearch)[indragunawan/api-rate-limit-bundle

Rate limits protection for api-platform resources.

68112.4k](/packages/indragunawan-api-rate-limit-bundle)

PHPackages © 2026

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