2024-06-03 11:03:08 +08:00

89 lines
3.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div align="center">
<img width="160" src="https://docs.apidoc.icu/logo.png">
</div>
<h1 align="center" style="margin-top: 0;padding-top: 0;">
Apidoc
</h1>
<div align="center">
基于PHP的注解生成API文档及Api接口开发工具
</div>
<div align="center" style="margin-top:10px;margin-bottom:50px;">
<a href="https://packagist.org/packages/hg/apidoc"><img src="https://img.shields.io/packagist/v/hg/apidoc"></a>
<a href="https://packagist.org/packages/hg/apidoc"><img src="https://img.shields.io/packagist/dt/hg/apidoc"></a>
<a href="https://packagist.org/packages/hg/apidoc"><img src="https://img.shields.io/packagist/dm/hg/apidoc"></a>
<a href="https://packagist.org/packages/hg/apidoc"><img src="https://img.shields.io/packagist/dd/hg/apidoc"></a>
<a href="https://packagist.org/packages/hg/apidoc"><img src="https://img.shields.io/packagist/l/hg/apidoc"></a>
<a href="https://github.com/HGthecode/apidoc-php"><img src="https://img.shields.io/github/issues/HGthecode/apidoc-php"></a>
<a href="https://github.com/HGthecode/apidoc-php"><img src="https://img.shields.io/github/forks/HGthecode/apidoc-php"></a>
</div>
## 🤷‍♀️ Apidoc是什么
Apidoc是一个通过解析注解生成Api接口文档的PHP composer扩展兼容Laravel、ThinkPHP、Hyperf、Webman等框架
全面的注解引用、数据表字段引用简单的注解即可生成Api文档而Apidoc不仅于接口文档在线接口调试、Mock调试数据、调试事件处理、Json/TypeScript生成、接口生成器、代码生成器等诸多实用功能致力于提高Api接口开发效率。
## ✨特性
- 开箱即用无繁杂的配置、安装后按文档编写注释即可自动生成API文档。
- 轻松编写:支持通用注释引用、业务逻辑层、数据表字段的引用,几句注释即可完成。
- 在线调试:在线文档可直接调试,并支持全局请求/Mock参数/事件处理,接口调试省时省力。
- 安全高效:支持访问密码验证、应用/版本独立密码;支持文档缓存。
- 多应用/多版本可适应各种单应用、多应用、多版本的项目的Api管理。
- 分组/Tag可对控制器/接口进行多级分组或定义Tag。
- Markdown文档支持.md文件的文档展示。
- Json/TypeScript生成文档自动生成接口的Json及TypeScript。
- 代码生成器:配置+模板即可快速生成代码及数据表的创建,大大提高工作效率。
## 📌兼容
以下框架已内置兼容,可开箱即用
|框架|版本|
|-|-|-|
|ThinkPHP|5.1、6.x、8.x|
|Laravel|8.x、9.x、10.x|
|Webman|1.x|
|Hyperf|2.x、3.x|
## 📖使用文档
[https://docs.apidoc.icu](https://docs.apidoc.icu/)
[https://hg-code.gitee.io/apidoc-php/](https://hg-code.gitee.io/apidoc-php/)
## 🏆支持我们
如果本项目对您有所帮助请点个Star支持我们
- [Github](https://github.com/HGthecode/apidoc-php) -> <a href="https://github.com/HGthecode/apidoc-php" target="_blank">
<img height="22" src="https://img.shields.io/github/stars/HGthecode/apidoc-php?style=social" class="attachment-full size-full" alt="Star me on GitHub" data-recalc-dims="1" /></a>
- [Gitee](https://gitee.com/hg-code/apidoc-php) -> <a href="https://gitee.com/hg-code/apidoc-php/stargazers"><img src="https://gitee.com/hg-code/apidoc-php/badge/star.svg" alt="star"></a>
## 🌐交流群
![QQ群](https://docs.apidoc.icu/qq-qun.png)
## 💡鸣谢
<a href="https://github.com/doctrine/annotations" target="_blank">doctrine/annotations</a>
## 🔗链接
<a href="https://github.com/HGthecode/apidoc-ui" target="_blank">ApiDoc UI</a>
<a href="https://github.com/HGthecode/apidoc-demos" target="_blank">ApiDoc Demo</a>