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

ActiveLibrary

axios/xhprof-composer
=====================

composer library for xhprof

1.0.1(7y ago)2291↓100%MITPHPPHP &gt;=7.0

Since May 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/AxiosCros/xhprof-composer)[ Packagist](https://packagist.org/packages/axios/xhprof-composer)[ Docs](https://github.com/AxiosCros/xhprof-composer)[ RSS](/packages/axios-xhprof-composer/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/70446a1060d47e4dc9aabc8dd5639e4561a5ec7b1a3593e298d1df41c7220806/68747470733a2f2f706f7365722e707567782e6f72672f6178696f732f786870726f662d636f6d706f7365722f762f737461626c65)](https://packagist.org/packages/axios/xhprof-composer)[![License](https://camo.githubusercontent.com/f2798d046217d2f8ce8e42c843084bf8e054e911cb72c168d6b8c1b31faf1e11/68747470733a2f2f706f7365722e707567782e6f72672f6178696f732f786870726f662d636f6d706f7365722f6c6963656e7365)](https://packagist.org/packages/axios/xhprof-composer)

xhprof-composer
===============

[](#xhprof-composer)

> composer library for xhprof

Need install xhprof php extension
---------------------------------

[](#need-install-xhprof-php-extension)

```
git clone https://github.com/longxinH/xhprof.git
cd xhprof/extension/
/usr/local/php7/bin/phpize
./configure --with-php-config=/usr/local/php7/bin/php-config
make
make install

vim /usr/local/php7/lib/php.ini
```

```
extension=xhprof.so;
```

```
service php-fpm restart
```

Install
-------

[](#install)

```
composer require axios/xhprof-composer
```

Use
---

[](#use)

- create record of xhprof\_runs

```
namespace xhprof;

require_once __DIR__.'/../vendor/autoload.php';

XHProf::start();

/*** begin ***/

dump('this is example for use xhprof-composer');
$a = pow(2, 10);
dump($a);

/*** end ***/

$report = XHProf::end('test');
dump($report);
$run_id = XHProf::getRunId('test');
dump($run_id);
```

- query

```
dump(XHProfRuns::query()->find($run_id));

$list = [
    '38cece5b1ce049e446b5f58fba0aba7c',
    '86cd5712d2a679efe80c743d1d2342e8',
    '773a5a2a3a50ebf16fa0dc5256cafd46'
];

$data = XHProfRuns::query()->select($list);
dump($data);
```

- get report

```
$report = XHProf::report($run_id);

dump($report->getTotalCpuTime());
dump($report->getTotalMemory());
dump($report->getList());
dump($report->getTree());
```

###  Health Score

29

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

2672d ago

Major Versions

0.1.0 → 1.0.02018-08-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/423b4de06d2238d3e39bc1bed3710038b75fb705faba842d964a627d618f5e33?d=identicon)[axios](/maintainers/axios)

---

Top Contributors

[![AxiosLeo](https://avatars.githubusercontent.com/u/13862149?v=4)](https://github.com/AxiosLeo "AxiosLeo (43 commits)")

---

Tags

composerphp7xhprof

### Embed Badge

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

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

PHPackages © 2026

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