PHPackages                             ctfang/swoft-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. ctfang/swoft-admin

ActiveLibrary

ctfang/swoft-admin
==================

swoft webtool component

0.1.0(5y ago)161557Apache-2.0JavaScriptPHP &gt;=7.1

Since Sep 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ctfang/swoft-admin)[ Packagist](https://packagist.org/packages/ctfang/swoft-admin)[ RSS](/packages/ctfang-swoft-admin/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (11)Used By (0)

swoft-admin
===========

[](#swoft-admin)

swoft的web开发辅助工具

安装
--

[](#安装)

```
composer require ctfang/swoft-admin

```

下载主干 composer require ctfang/swoft-admin dev-master

配置
--

[](#配置)

在 `app/bean.php` 新增

```
    'adminServer'        => [
        'class'    => AdminServer::class,
        'port'     => 18366,
        'on'       => [
            SwooleEvent::REQUEST => bean(RequestListener::class),
        ],
        /* @see HttpServer::$setting 静态文件配置 */
        'setting'  => [
            'enable_static_handler' => true,
            'document_root' => __DIR__."/../vendor/ctfang/swoft-admin/public/",
        ]
    ],

```

修改 .env 配置
----------

[](#修改-env-配置)

默认 `ADMIN_WEB = http://127.0.0.1/public/`

```
# 设置ip访问限制 (默认不限制)
ADMIN_ALLOW="*.*.*.*"
# 打开登录开关 (默认登录后才能访问)
ADMIN_ENABLE_LOGIN=1
# 配置静态文件地址
ADMIN_WEB="http://127.0.0.1:18366/"

```

启动
--

[](#启动)

```
php bin/swoft admin:start

```

如果需要在 `http:start` 也能访问,需要设置 `.env`

```
ADMIN_ENABLE=1
```

访问,默认账号密码 `username = admin ; password = 123456`
------------------------------------------------

[](#访问默认账号密码-username--admin--password--123456)

[http://your.com/\_\_admin/login](http://your.com/__admin/login)

修改密码
----

[](#修改密码)

复制文件 `vendor/ctfang/swoft-admin/src/Config/user.config.php` 到 `@config/__admin.php@config/__admin.php`

计划
--

[](#计划)

- [控制器展示&amp;创建](https://github.com/ctfang/swoft-admin/blob/master/src/Http/Controller/RouteController.php)
- [中间件展示&amp;创建](https://github.com/ctfang/swoft-admin/blob/master/src/Http/Controller/RouteController.php)
- [路由导出postmen](https://github.com/ctfang/swoft-admin/blob/master/src/Http/Controller/RouteController.php)
- [Model目录展示&amp;创建](https://github.com/ctfang/swoft-admin/blob/master/src/Http/Controller)
- [定时器展示](https://github.com/ctfang/swoft-admin/blob/master/src/Http/Controller)
- [命令展示&amp;创建](https://github.com/ctfang/swoft-admin/blob/master/src/Http/Controller)
- [Web Terminal](https://github.com/ctfang/swoft-admin/blob/master/src/Http/Controller)
- [控制器代码查看](https://github.com/ctfang/swoft-admin/blob/master/src/Http/Controller)
- [Logs查看](https://github.com/ctfang/swoft-admin/blob/master/src/Http/Controller)
- 第三方登录模拟
- 启动&amp;关闭http
- 界面创建路由(空函数)
- 配置查看
- 进程信息

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

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

Recently: every ~66 days

Total

10

Last Release

2151d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6645de82017106e5f82dff108225c338183991e509d3a5be8d5946a38e623436?d=identicon)[selden1992](/maintainers/selden1992)

---

Top Contributors

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

---

Tags

phpswooleswoftwebtool

### Embed Badge

![Health badge](/badges/ctfang-swoft-admin/health.svg)

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

###  Alternatives

[swoft/redis

swoft redis component

12168.4k16](/packages/swoft-redis)

PHPackages © 2026

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