PHPackages                             apiadmin/apiadmin - 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. [Framework](/categories/framework)
4. /
5. apiadmin/apiadmin

ActiveProject[Framework](/categories/framework)

apiadmin/apiadmin
=================

Just For Api

v5.0.1(4y ago)5024.2k154[2 issues](https://github.com/Zhao-github/ApiAdmin/issues)Apache-2.0PHPPHP &gt;=7.2.5

Since Feb 22Pushed 4y ago33 watchersCompare

[ Source](https://github.com/Zhao-github/ApiAdmin)[ Packagist](https://packagist.org/packages/apiadmin/apiadmin)[ Docs](http://www.apiadmin.org/)[ RSS](/packages/apiadmin-apiadmin/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (5)Versions (26)Used By (0)

> 站在巨人的肩膀上，并不是高的表现，反而使自己变得渺小~只有吸收了巨人的营养，茁壮自己才是真正的高大！ --笔者

ApiAdmin
========

[](#apiadmin)

[![ApiAdmin](https://camo.githubusercontent.com/78e12fef66dd65f28b12579146b6831bf5276dc1118783c03daa9801fa0c130c/68747470733a2f2f696d672e736869656c64732e696f2f686578706d2f6c2f706c75672e737667)](http://www.apiadmin.org/)[![ApiAdmin](https://camo.githubusercontent.com/bace57c2b9855d57c48c73b3f3a21bc5c54ba959c06c9cc6182acbe322bce13e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656c656173652d352e302e302d626c75652e737667)](http://www.apiadmin.org/)[![ApiAdmin](https://camo.githubusercontent.com/c27a457659b89ee4f1f80f7995c559dd37f2051bde7167ad25791e5c5c92cc8e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d70617373696e672d627269676874677265656e2e737667)](http://www.apiadmin.org/)[![ApiAdmin](https://camo.githubusercontent.com/096a11c50d293bdf69a2bce3a4739d77816d0def87dca92334d8ab10687c3c35/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f41706941646d696e2d352e302e302d627269676874677265656e2e737667)](http://www.apiadmin.org/)

前端页面
----

[](#前端页面)

ApiAdmin5.0是一个前后端完全分离的项目，前端采用Vue构建，如需要可视化配置的请移步：[ApiAdmin-WEB](https://gitee.com/apiadmin/ApiAdmin-WEB)

快速安装
----

[](#快速安装)

> 第一步：安装代码

```
composer create-project apiadmin/apiadmin

```

```
你也可以：先获取基础代码 git clone https://gitee.com/apiadmin/ApiAdmin.git   再使用composer安装 composer install

```

> 第二步：检测环境以及配置数据库

```
php think apiadmin:install

```

> 第三步：完成数据迁移

```
php think migrate:run

* 如出现报错：There are no commands defined in the "migrate" namespace.
* 请先更新下think版本：composer update topthink/framework
* 再执行：php think migrate:run
* 特别鸣谢：@孙晔华

```

> 第四步：构建后端路由

```
php think apiadmin:adminRouter

```

> 第五步：获取管理后台账号密码

```
cat install/lock.ini

```

灵 感
---

[](#灵-感)

首先自我介绍下吧，我是一个PHP程序员，目前就职于某上市集团。我第一份工作是做微信开发的，这也是我入行以来第一次做的商业上线项目，虽然我只是充当了其中一个不是太重要的角色，但是感谢它让我第一次接触了API，也让我第一次对于API产生了浓厚的兴趣。之后的一段时间内甚至疯狂的收集过各种免费的API接口！然而一直只是在用API，却没有为API贡献过些什么。

开源框架用了很多，开源代码看了很多，github、git@osc、Stack Overflow这些优秀的平台帮助了我很多，所以，我觉得是时候为开源做点什么。更是给开源项目PhalApi贡献过代码，也正是这一个契机使得我正式迈向开源社区。随着时间的推移，PhalApi的战绩赫赫，它的壮大更加坚定了Api的地位，既然未来的互联网世界中API占了很重要的地位，既然越来越多的人开始开发API，那么无状态的API如何去管理呢？因此**ApiAdmin**来了~

愿 景
---

[](#愿-景)

> 希望有人用它，希望更多的人用它。 希望它能帮助到你，希望它能帮助到更多的你。

项目简介
----

[](#项目简介)

**系统需求**

- PHP &gt;= 7.2.5
- MySQL &gt;= 5.5.3
- Redis

**项目构成**

- ThinkPHP v6.0.\*
- Vue 2.\*
- ...

**功能简介**

1. 接口文档自动生成
2. 接口输入参数自动检查
3. 接口输出参数数据类型自动规整
4. 灵活的参数规则设定
5. 支持三方Api无缝融合
6. 本地二次开发友好
7. ...

```
ApiAdmin（PHP部分）
├─ 系统维护
|  ├─ 菜单管理 - 编辑访客权限，处理菜单父子关系，被权限系统依赖（极为重要）
|  ├─ 用户管理 - 添加新用户，封号，删号以及给账号分配权限组
|  ├─ 权限管理 - 权限组管理，给权限组添加权限，将用户提出权限组
|  └─ 操作日志 - 记录管理员的操作，用于追责，回溯和备案
|  ...

```

**页面截图**

[![输入图片说明](https://camo.githubusercontent.com/5e0371bf351747adf99550fcf4f368ee1572fb5bc38b8ff113395a7cb2e43b83/68747470733a2f2f67697465652e636f6d2f75706c6f6164732f696d616765732f323031382f303232342f3039353335385f31396362343264305f3131303835362e706e67 "api.png")](https://camo.githubusercontent.com/5e0371bf351747adf99550fcf4f368ee1572fb5bc38b8ff113395a7cb2e43b83/68747470733a2f2f67697465652e636f6d2f75706c6f6164732f696d616765732f323031382f303232342f3039353335385f31396362343264305f3131303835362e706e67)

[![输入图片说明](https://camo.githubusercontent.com/684e9082dfcae56eb141cd0ca4ed28cd0631c00563fec2298ed93c1797c93dbc/68747470733a2f2f67697465652e636f6d2f75706c6f6164732f696d616765732f323031382f303232342f3039353431305f35356463323365315f3131303835362e706e67 "app.png")](https://camo.githubusercontent.com/684e9082dfcae56eb141cd0ca4ed28cd0631c00563fec2298ed93c1797c93dbc/68747470733a2f2f67697465652e636f6d2f75706c6f6164732f696d616765732f323031382f303232342f3039353431305f35356463323365315f3131303835362e706e67)

[![输入图片说明](https://camo.githubusercontent.com/c93fe12aaeb594a4bb0646f0dff4caa32d22f2a172bb00c004ecd919dc86bffc/68747470733a2f2f67697465652e636f6d2f75706c6f6164732f696d616765732f323031382f303232342f3039353432305f62646466663939305f3131303835362e706e67 "auth1.png")](https://camo.githubusercontent.com/c93fe12aaeb594a4bb0646f0dff4caa32d22f2a172bb00c004ecd919dc86bffc/68747470733a2f2f67697465652e636f6d2f75706c6f6164732f696d616765732f323031382f303232342f3039353432305f62646466663939305f3131303835362e706e67)

[![输入图片说明](https://camo.githubusercontent.com/effa278f35369523de687ff1cb14b3e6dc5e831b7e7ab0993e08d7a4bf812bf2/68747470733a2f2f67697465652e636f6d2f75706c6f6164732f696d616765732f323031382f303232342f3039353432375f66613836653432645f3131303835362e706e67 "auth2.png")](https://camo.githubusercontent.com/effa278f35369523de687ff1cb14b3e6dc5e831b7e7ab0993e08d7a4bf812bf2/68747470733a2f2f67697465652e636f6d2f75706c6f6164732f696d616765732f323031382f303232342f3039353432375f66613836653432645f3131303835362e706e67)

[![输入图片说明](https://camo.githubusercontent.com/7f5e12e6d8bbb805e00797d3ed80119fdda5718bb06a284153aad69d452c4fc0/68747470733a2f2f67697465652e636f6d2f75706c6f6164732f696d616765732f323031382f303232342f3039353433365f33363030646531375f3131303835362e706e67 "lock.png")](https://camo.githubusercontent.com/7f5e12e6d8bbb805e00797d3ed80119fdda5718bb06a284153aad69d452c4fc0/68747470733a2f2f67697465652e636f6d2f75706c6f6164732f696d616765732f323031382f303232342f3039353433365f33363030646531375f3131303835362e706e67)

[![输入图片说明](https://camo.githubusercontent.com/b0e289617b1d2a0c4bbe8c0f41b27232f1776a1e4190c5c7e130c5a63005267c/68747470733a2f2f67697465652e636f6d2f75706c6f6164732f696d616765732f323031382f303232342f3039353434345f64326138386461305f3131303835362e706e67 "user.png")](https://camo.githubusercontent.com/b0e289617b1d2a0c4bbe8c0f41b27232f1776a1e4190c5c7e130c5a63005267c/68747470733a2f2f67697465652e636f6d2f75706c6f6164732f696d616765732f323031382f303232342f3039353434345f64326138386461305f3131303835362e706e67)

**项目特性**

- 开放源码
- 保持生机
- 不断更新
- 响应市场

**开源，我们在路上！**

鸣谢
--

[](#鸣谢)

ApiAdmin走到今天，也正式迈入4.1时代了，我们怀着激动的心情迎来这次发布。在新版本发布之际，我们真诚的感谢从1.0到5.0陪我们一路走来的朋友们。感谢你们的支持和信任！当然也感谢#开源中国#给大陆本土开源提供这样一个优秀的平台。

附：升级指南
------

[](#附升级指南)

很抱歉的告诉大家，虽然我们尽可能的和往期版本进行了兼容，但是，由于整体架构变化很大，所以想要零成本升级有点困难。我们建议大家可以使用5.0做新接口，慢慢的将4.1版本的接口移植到5.0。

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity68

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

Recently: every ~126 days

Total

24

Last Release

1605d ago

Major Versions

v3.1.0 → v4.0.02019-07-01

v4.1.5 → v5.0.02020-10-27

PHP version history (4 changes)v3.0.1PHP &gt;=5.4.0

v3.0.4PHP &gt;=5.6.0

v4.1.2PHP &gt;=7.0

v5.0.0PHP &gt;=7.2.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/6105a6b9d8bd0d5cdd51abf1323f68114916ab5fdac4cfc36a32acb728183eaf?d=identicon)[Zhao-github](/maintainers/Zhao-github)

---

Top Contributors

[![Zhao-github](https://avatars.githubusercontent.com/u/12930222?v=4)](https://github.com/Zhao-github "Zhao-github (23 commits)")

---

Tags

apiapiadminoscthinkphpapiframeworkthinkphpApiAdmin

### Embed Badge

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

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

###  Alternatives

[topthink/think

the new thinkphp framework

8.0k1.2M12](/packages/topthink-think)[jaguarjack/catchadmin

The CatchAdmin Background management

8952.6k](/packages/jaguarjack-catchadmin)

PHPackages © 2026

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