PHPackages                             light/xhgui - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. light/xhgui

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

light/xhgui
===========

From perftools/xhgui,A web based interface for viewing profile data collected by XHProf.

1.0.2(7y ago)114MITJavaScriptPHP &gt;=5.3.0

Since Jun 9Pushed 7y ago1 watchersCompare

[ Source](https://github.com/lichunqiang/xhgui)[ Packagist](https://packagist.org/packages/light/xhgui)[ RSS](/packages/light-xhgui/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (6)Versions (6)Used By (0)

xhgui
-----

[](#xhgui)

xhgui的安装信息可到源项目查看文档：[xhgui](https://github.com/perftools/xhgui)

[![Latest Stable Version](https://camo.githubusercontent.com/3a8616a8258724f3574721714e3deb4d2a870c317dab628348857827e974e58e/68747470733a2f2f706f7365722e707567782e6f72672f6c696768742f78686775692f762f737461626c652e706e67)](https://packagist.org/packages/light/xhgui)[![Total Downloads](https://camo.githubusercontent.com/36e034e0d888f82df03a6dd7009666890b7eb2e4ddcfda396ab4b3ed5f723395/68747470733a2f2f706f7365722e707567782e6f72672f6c696768742f78686775692f646f776e6c6f6164732e706e67)](https://packagist.org/packages/light/xhgui)[![Build Status](https://camo.githubusercontent.com/8f001dbe76f1e4e9a2a56747c95d345ffb935fad8aa5a19b68823e810dcb7b06/68747470733a2f2f7472617669732d63692e6f72672f6c696768742f78686775692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/light/xhgui)

xhprof
------

[](#xhprof)

如果是PHP7环境的话，推荐安装[longxinH/xhprof](https://github.com/longxinH/xhprof) 扩展

部署
--

[](#部署)

### LNMP环境部署

[](#lnmp环境部署)

需要安装mongodb扩展, 如果希望使用udp方式接受数据的话, 可以选择workerman或者swoole, 安装相应依赖的扩展即可

```
$ composer create-project light/xhgui xhgui

```

nginx:

```
server {
    listen 80;
    server_name www.php-xhgui.dev php-xhgui.dev;
    root /server/wwwroot/xhprof/webroot;
    index index.php index.html;
    location / {
        try_files $uri $uri/ /index.php?$args;
    }
    location ~ \.php$ {
        try_files $uri = 404;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }
}

```

### Docker(推荐)

[](#docker推荐)

```
$ cp env-docker .env
$ docker-compose build
$ docker-compose up -d
```

> 如果发现nginx的80或者9000端口别占用，可以通过修改 .env 文件中的端口号

查看输出日志:

```
$ docker-compose logs -f
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 78.9% 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 ~115 days

Total

4

Last Release

2883d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ead2ef2c9862aa3d75a97de86af1e3cfa919886e8981bf0808cddd93f563777?d=identicon)[light](/maintainers/light)

---

Top Contributors

[![markstory](https://avatars.githubusercontent.com/u/24086?v=4)](https://github.com/markstory "markstory (615 commits)")[![preinheimer](https://avatars.githubusercontent.com/u/244891?v=4)](https://github.com/preinheimer "preinheimer (58 commits)")[![lichunqiang](https://avatars.githubusercontent.com/u/2433916?v=4)](https://github.com/lichunqiang "lichunqiang (24 commits)")[![bertrandmalet](https://avatars.githubusercontent.com/u/496453?v=4)](https://github.com/bertrandmalet "bertrandmalet (12 commits)")[![dumityty](https://avatars.githubusercontent.com/u/1616746?v=4)](https://github.com/dumityty "dumityty (11 commits)")[![laynefyc](https://avatars.githubusercontent.com/u/20231054?v=4)](https://github.com/laynefyc "laynefyc (9 commits)")[![sebbrandt87](https://avatars.githubusercontent.com/u/793580?v=4)](https://github.com/sebbrandt87 "sebbrandt87 (7 commits)")[![thbourlove](https://avatars.githubusercontent.com/u/1768066?v=4)](https://github.com/thbourlove "thbourlove (5 commits)")[![Krinkle](https://avatars.githubusercontent.com/u/156867?v=4)](https://github.com/Krinkle "Krinkle (4 commits)")[![lornajane](https://avatars.githubusercontent.com/u/172607?v=4)](https://github.com/lornajane "lornajane (4 commits)")[![anho](https://avatars.githubusercontent.com/u/863612?v=4)](https://github.com/anho "anho (3 commits)")[![david-garcia-garcia](https://avatars.githubusercontent.com/u/9599352?v=4)](https://github.com/david-garcia-garcia "david-garcia-garcia (3 commits)")[![dshafik](https://avatars.githubusercontent.com/u/58074?v=4)](https://github.com/dshafik "dshafik (3 commits)")[![sylus](https://avatars.githubusercontent.com/u/984304?v=4)](https://github.com/sylus "sylus (2 commits)")[![kornrunner](https://avatars.githubusercontent.com/u/725986?v=4)](https://github.com/kornrunner "kornrunner (2 commits)")[![beberlei](https://avatars.githubusercontent.com/u/26936?v=4)](https://github.com/beberlei "beberlei (2 commits)")[![skors](https://avatars.githubusercontent.com/u/2559733?v=4)](https://github.com/skors "skors (2 commits)")[![mre](https://avatars.githubusercontent.com/u/175809?v=4)](https://github.com/mre "mre (1 commits)")[![dingdayu](https://avatars.githubusercontent.com/u/2040348?v=4)](https://github.com/dingdayu "dingdayu (1 commits)")[![rajiff](https://avatars.githubusercontent.com/u/1080415?v=4)](https://github.com/rajiff "rajiff (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/light-xhgui/health.svg)

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

###  Alternatives

[rarst/laps

Light WordPress profiler.

567262.1k2](/packages/rarst-laps)[rarst/wps

WordPress plugin for whoops error handler.

129133.2k3](/packages/rarst-wps)[laynefyc/xhgui-chinese

From perftools/xhgui,A web based interface for viewing profile data collected by XHProf.

8931.9k](/packages/laynefyc-xhgui-chinese)[oat-sa/tao-core

TAO core extension

66136.7k74](/packages/oat-sa-tao-core)[matthimatiker/opcache-bundle

Displays the state of the PHP opcache in the Symfony profiler toolbar.

2288.2k](/packages/matthimatiker-opcache-bundle)[yusukezzz/slim-debugbar

4213.5k](/packages/yusukezzz-slim-debugbar)

PHPackages © 2026

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