PHPackages                             swoole/debugger - 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. swoole/debugger

ActiveLibrary

swoole/debugger
===============

Swoole Remote Debugger

777015PHP

Since May 20Pushed 4y ago6 watchersCompare

[ Source](https://github.com/swoole/debugger)[ Packagist](https://packagist.org/packages/swoole/debugger)[ RSS](/packages/swoole-debugger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

为 Swoole Server 设计的远程终端
=======================

[](#为-swoole-server-设计的远程终端)

基于`swoole-1.8`的多协议特性实现，业务无需做任何修改，只需要加一行代码即可引入一个功能强大的远程终端。

安装
--

[](#安装)

```
composer require swoole/debugger
```

注册 Shell 到 Swoole Server 对象
---------------------------

[](#注册-shell-到-swoole-server-对象)

- 建议只监听本机`127.0.0.1`或局域网`192.168.1.100`

```
\Swoole\Debugger\RemoteShell::listen($serv, '127.0.0.1', 9599);
```

连接到远程终端
-------

[](#连接到远程终端)

```
htf@htf-All-Series:~/workspace/proj/remote-shell/tests$ telnet 127.0.0.1 9599
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
p|print [variable]	打印一个PHP变量的值
e|exec [code]	执行一段PHP代码
w|worker [id]	切换Worker进程
l|list	打印服务器所有连接的fd
s|stats	打印服务器状态
c|coros	打印协程列表
cs|costats	打印协程状态
el|elapsed [cid]	打印某个协程运行的时间
tl|timer_list	打印当前进程中所有定时器ID
ti|timer_info [timer_id]	打印某个定时器信息
ts|timer_stats	打印当前进程中的定时器状态
b|bt [cid]	打印某个协程调用栈
i|info [fd]	显示某个连接的信息
h|help	显示帮助界面
q|quit	退出终端
#2>
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 70% 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/e1dea9261ba377a13a16e7e0f3883e73bda4094551ddea280e852f23a5d248c0?d=identicon)[Tianfeng.Han](/maintainers/Tianfeng.Han)

---

Top Contributors

[![matyhtf](https://avatars.githubusercontent.com/u/2017766?v=4)](https://github.com/matyhtf "matyhtf (14 commits)")[![sy-records](https://avatars.githubusercontent.com/u/33931153?v=4)](https://github.com/sy-records "sy-records (5 commits)")[![chanble](https://avatars.githubusercontent.com/u/3293670?v=4)](https://github.com/chanble "chanble (1 commits)")

### Embed Badge

![Health badge](/badges/swoole-debugger/health.svg)

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

PHPackages © 2026

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