PHPackages                             qinmaoyi/hyperf-server-command - 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. [CLI &amp; Console](/categories/cli)
4. /
5. qinmaoyi/hyperf-server-command

ActiveLibrary[CLI &amp; Console](/categories/cli)

qinmaoyi/hyperf-server-command
==============================

hyperf的启动、重启、停止、监听等命令, 适配hyperf3.0

v1.0.0(3y ago)0451MITPHPPHP &gt;=7.2

Since Feb 1Pushed 3y agoCompare

[ Source](https://github.com/qinmaoyi/hyperf-server-command)[ Packagist](https://packagist.org/packages/qinmaoyi/hyperf-server-command)[ RSS](/packages/qinmaoyi-hyperf-server-command/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

hyperf-server-command（hyperf 3.0）
=================================

[](#hyperf-server-commandhyperf-30)

### 注意

[](#注意)

该扩展包完全使用了FanchangWang写的代码，非常感谢FanchangWang，[FanchangWang的github地址](https://github.com/FanchangWang)
我是在hyperf1.2的pr查看到的这份代码，应该已经被包含hyperf1.2的命令内了，具体请看该pr[地址](https://github.com/hyperf/hyperf/pull/1053)

### 拉取包

[](#拉取包)

```
composer require qinmaoyi/hyperf-server-command

```

hyperf的启动、重启、停止、监听等命令如下：

```
//php bin/hyperf.php tmg:start -d //启动服务并进入后台模式
//php bin/hyperf.php tmg:start -c //启动服务并清除 runtime/container 目录
//php bin/hyperf.php tmg:start -w //启动服务并监控 app、config目录以及 .env 变化自动重启
//php bin/hyperf.php tmg:start -w -p /bin/php //启动 watch 服务，参数 p 指定 php 安装目录
//php bin/hyperf.php tmg:start -w -t 10  //启动 watch 服务，参数 t 指定 watch 时间间隔，单位秒
//php bin/hyperf.php tmg:stop //停止服务
//php bin/hyperf.php tmg:restart //重启服务
//php bin/hyperf.php tmg:restart -c //重启服务并清除 runtime/container 目录

```

tmg的前缀是我这边默认加上去的，自行修改

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.7% 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

Unknown

Total

1

Last Release

1249d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/230bdc0db93d13a2aacbf6af6caff850aa5e958a19ab4085c330761536d748e7?d=identicon)[yii2018](/maintainers/yii2018)

---

Top Contributors

[![qinmaoyi](https://avatars.githubusercontent.com/u/22696077?v=4)](https://github.com/qinmaoyi "qinmaoyi (18 commits)")[![phper666](https://avatars.githubusercontent.com/u/26764098?v=4)](https://github.com/phper666 "phper666 (1 commits)")

### Embed Badge

![Health badge](/badges/qinmaoyi-hyperf-server-command/health.svg)

```
[![Health](https://phpackages.com/badges/qinmaoyi-hyperf-server-command/health.svg)](https://phpackages.com/packages/qinmaoyi-hyperf-server-command)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)

PHPackages © 2026

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