PHPackages                             leruge/tp6-admin - 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. leruge/tp6-admin

Abandoned → [leruge/admin](/?search=leruge%2Fadmin)Library

leruge/tp6-admin
================

适用于thinkphp6的后台扩展

0234JavaScript

Since Jul 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/leruge/tp6-admin)[ Packagist](https://packagist.org/packages/leruge/tp6-admin)[ RSS](/packages/leruge-tp6-admin/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

thinkphp6后台扩展
=============

[](#thinkphp6后台扩展)

功能
--

[](#功能)

1. 系统设置
2. 管理员管理
3. 权限
4. 迁移和种子
5. 错误页面、下载页面、首页、隐私协议
6. 下载页面 `域名+down.html`
7. 首页 `域名`
8. 隐私协议地址 `域名+agreement.html`

使用说明
----

[](#使用说明)

1. 安装后台扩展 `composer require leruge/tp6-admin=dev-master`
2. 安装封装函数 `composer require leruge/tp6-helper=dev-main`
3. 生成后台所需文件 `php think leruge:admin`
4. 执行完后会在config目录生成extra.php和admin.php配置文件，自行配置即可
5. 开启开发模式env，配置app\_url全局url
6. 删除static下的.gitignore文件
7. 配置数据库，编码设置utf8mb4
8. 执行迁移 `php think migrate:run`
9. 种子填充（不允许多次执行） `php think seed:run`
10. 后台登录状态使用session，所有需要开启session中间件，用的name是adminId
11. 配置磁盘filesystem.php如下

```
'customer' => [
    'type' => 'local',
    'root' => app()->getRootPath() . 'public' . DIRECTORY_SEPARATOR . 'static' . DIRECTORY_SEPARATOR . 'uploads',
]

```

1. 在app.php配置文件修改配置 `'exception_tmpl'   => env('app_debug') ? app()->getThinkPath() . 'tpl/think_exception.tpl' : app()->getRootPath() . 'view' . DIRECTORY_SEPARATOR . 'error' . DIRECTORY_SEPARATOR . 'error.html',`
2. 在公共函数中实现send\_code($phone, $code)，返回结果1是发送成功
3. 下载页面需要配置urlscheme，在index控制器的down方法中

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b2518593dfbc67ba8bc8e39bb30541fa3d8a7002f87240f2f8a6b99f26e4c9eb?d=identicon)[leruge@163.com](/maintainers/leruge@163.com)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/leruge-tp6-admin/health.svg)

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

PHPackages © 2026

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