PHPackages                             wayhood/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. wayhood/hyperf-server-command

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

wayhood/hyperf-server-command
=============================

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

3.1.x-dev(10mo ago)0123MITPHPPHP &gt;=8.1

Since Aug 17Pushed 10mo agoCompare

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

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

hyperf-server-command（hyperf 3.1）
=================================

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

### 修改

[](#修改)

- 适配3.1
- 未安装适配协程插件，不检查 swoole.use\_shortname
- php bin/hyperf.php tmg:start -p 9501 //指定端口 默认查询name=http server port
- php bin/hyperf.php tmg:start -a 0.0.0.0 //监听地址 默认查找name=http server host
- php bin/hyperf.php tmg:start -w -i /bin/php //启动 watch 服务，参数 i(interpreter) 指定 php 安装目录

### 注意

[](#注意)

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

### 拉取包

[](#拉取包)

```
composer require wayhood/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

27

—

LowBetter than 47% of packages

Maintenance54

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

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

320d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[gokure/hyperf-tinker

A Powerful REPL for the Hyperf framework.

1523.3k](/packages/gokure-hyperf-tinker)[leearvin/hyperf-tinker

Powerful REPL for the Hyperf framework.

116.6k](/packages/leearvin-hyperf-tinker)

PHPackages © 2026

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