PHPackages                             zhanghong/tpadmin - 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. zhanghong/tpadmin

ActiveLibrary[Framework](/categories/framework)

zhanghong/tpadmin
=================

the admin framework based on thinkphp 6.0

2.0.3(6y ago)12332[2 issues](https://github.com/zhanghong/tpadmin/issues)MITJavaScriptPHP &gt;=7.1.0

Since Sep 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/zhanghong/tpadmin)[ Packagist](https://packagist.org/packages/zhanghong/tpadmin)[ RSS](/packages/zhanghong-tpadmin/feed)WikiDiscussions master Synced 2d ago

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

 tpadmin
=========

[](#-tpadmin-)

 the admin framework based on thinkphp 5.1.

 [ ![StyleCI](https://camo.githubusercontent.com/0eea50db0e7c9279a9fa4ea0becd5a2650ff9bc48766a879ceb45d5c0248b734/68747470733a2f2f7374796c6563692e696f2f7265706f732f3137373935303333382f736869656c643f6272616e63683d6d6173746572) ](https://styleci.io/repos/177950338) [ ![TravisCi](https://camo.githubusercontent.com/99b0ae5850e0845412f7eee4e524cec31b15c335b056927d1660a42b6aed40e6/68747470733a2f2f7472617669732d63692e6f72672f7a68616e67686f6e672f747061646d696e2e7376673f6272616e63683d6d6173746572) ](https://travis-ci.org/zhanghong/tpadmin)

安装
--

[](#安装)

最方便的安装方式就是使用Composer (  )，在这之前**务必**先搭建好thinkphp5.1项目

1、安装 Tpadmin :

```
$ composer require zhanghong/tpadmin
```

2、配置

添加行为在 `application/tags.php`

```
return [

    'app_init'     => [
        \tpadmin\behavior\Boot::class,
    ],

    // ...
];

```

3、初始化和数据迁移

```
#初始化
$ php think tpadmin:init
#安装数据库迁移扩展包
$ composer require topthink/think-migration=2.0.*
#创建Tpadmin数据表
$ php think migrate:run
#添加初始化数据
$ php think tpadmin:seed
```

进入tpadmin后台
-----------

[](#进入tpadmin后台)

打开后台地址，例如：

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

Total

6

Last Release

2359d ago

Major Versions

1.0.3 → 2.0.12019-11-22

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

frameworkadminthinkphptp6.0

### Embed Badge

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

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

###  Alternatives

[apiadmin/apiadmin

Just For Api

5024.2k](/packages/apiadmin-apiadmin)

PHPackages © 2026

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