PHPackages                             thinkers/fastadmin\_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. thinkers/fastadmin\_apidoc

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

thinkers/fastadmin\_apidoc
==========================

基于Fastadmin Apidoc 基础修改的文档生成命令

1.0.1(4y ago)06Apache-2.0PHPPHP &gt;=5.6

Since May 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/hellolxc/fastadmin_apidoc)[ Packagist](https://packagist.org/packages/thinkers/fastadmin_apidoc)[ RSS](/packages/thinkers-fastadmin-apidoc/feed)WikiDiscussions main Synced 5d ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

### 安装

[](#安装)

> composer require thinkers/fastadmin\_apidoc

### 介绍

[](#介绍)

基于fastadmin api文档生成代码基础上修改，保留了全部的原生命令 新增以下功能

- 指定任意目录生成文档
- 排除指定的类的不生成文档

### 命令行

[](#命令行)

```
php think apidoc
```

### 配置

[](#配置)

配置文件位于 extra/apidoc.php

```
[
    "includeDir" => [//需要生成文档的目录 填写项目根目录的相对路径
        '/addons/test/controller/',
        '/application/admin/controller/',
    ],

    "excludeClass" => [//支持排除指定的类
        'addons\test\controller\Index',
        addons\test\controller\Index::class,
    ]
```

### 如何支持fastadmin后台插件一键生成文档

[](#如何支持fastadmin后台插件一键生成文档)

修改/application/admin/controller/Command.php文件 找到doexecute()方法 添加一下代码

```
$commandName = "\\app\\admin\\command\\" . ucfirst($commandtype);
//在上面👆这一行后添加下面👇的代码 即可将命令替换为apidoc 一键生成文档就支持自定义目录 和 排除指定类啦
if ($commandtype === "api") {
    $commandName = "\\thinkers\\apidoc\\commands\\". ucfirst($commandtype);
}
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

2

Last Release

1767d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2045929?v=4)[thinking](/maintainers/thinkers)[@thinkers](https://github.com/thinkers)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)[bunq/sdk_php

bunq PHP SDK

89222.7k2](/packages/bunq-sdk-php)

PHPackages © 2026

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