PHPackages                             fsth/xhprof - 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. fsth/xhprof

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

fsth/xhprof
===========

xhprof

v0.1.1(9y ago)099MITPHP

Since Sep 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/findsomething/xhprof)[ Packagist](https://packagist.org/packages/fsth/xhprof)[ RSS](/packages/fsth-xhprof/feed)WikiDiscussions master Synced 3w ago

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

xhprof
======

[](#xhprof)

install
-------

[](#install)

```
    pecl config-set preferred_state beta
    pecl install xhprof

    mkdir /var/www/xhprof
    mkdir /var/www/xhprof/output

    sudo vim /etc/php5/mods-available/xhprof.ini

    extension=xhprof.so
    xhprof.output_dir=/var/www/xhprof/output

    sudo sh -c "echo 'extension=xhprof.so' > /etc/php5/mods-available/xhprof.ini"
    cd /etc/php5/cli/conf.d
    sudo ln -s ../../mods-available/xhprof.ini
    cd /etc/php5/fpm/conf.d
    sudo ln -s ../../mods-available/xhprof.ini
    sudo service php5-fpm restart

    sudo cp -R /usr/share/php/xhprof_html  /var/www/xhprof/
    sudo cp -R /usr/share/php/xhprof_lib /var/www/xhprof/

    sudo vim /etc/nginx/sites-enabled/xhprof.conf

    server {
        listen 80;

        server_name xhprof.edusoho.net;

        root /var/www/xhprof/xhprof_html;

        access_log /var/log/nginx/xhprof.access.log;
        error_log /var/log/nginx/xhprof.error.log;

        location / {
          index index.php;
        }

        location ~ ^/(index|callgraph)\.php(/|$) {
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_split_path_info ^(.+\.php)(/.*)$;
            include fastcgi_params;
            fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
            fastcgi_buffer_size 128k;
            fastcgi_buffers 8 128k;
            fastcgi_index index.php;
        }
    }

```

usage
-----

[](#usage)

```
    compose install

    $xhprof = new FSth\XHProf\XHProf('test', true);
    $xhprof->setLibPath($libPath)->setUrl($url)->init();
    or
    $xhprof = new FSth\XHProf\XHProf('test', true, array(
        'libPath' => $libPath,
        'url' => $url
    ));
    $xhprof->init();

    $xhprof->start();
    $a = [];
    $b = [];
    for ($i = 0; $i < 10000; $i++) {
        $a[] = $i;
        $b[] = $i % 100;
    }
    array_diff($a, $b);
    $xhprof->stop();

```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

2

Last Release

3551d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1def6e3c66a36c047a170a8256861116c2f35fc033b0bca2e8049f632b23eb75?d=identicon)[qiqisan](/maintainers/qiqisan)

---

Top Contributors

[![findsomething](https://avatars.githubusercontent.com/u/3618101?v=4)](https://github.com/findsomething "findsomething (5 commits)")

### Embed Badge

![Health badge](/badges/fsth-xhprof/health.svg)

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

###  Alternatives

[symfony/error-handler

Provides tools to manage errors and ease debugging PHP code

2.7k682.0M764](/packages/symfony-error-handler)[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k365.0M3.1k](/packages/symfony-cache)[php-debugbar/php-debugbar

Debug bar in the browser for php application

4.4k26.7M61](/packages/php-debugbar-php-debugbar)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

562565.8k42](/packages/ecotone-ecotone)

PHPackages © 2026

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