PHPackages                             beberlei/hdrhistogram - 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. beberlei/hdrhistogram

ActivePhp-ext

beberlei/hdrhistogram
=====================

A PHP extension wrapper for the C hdrhistogram API.

1123CCI passing

Since Sep 29Pushed 6mo ago2 watchersCompare

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

READMEChangelog (3)DependenciesVersions (2)Used By (0)

hdrhistogram-php
================

[](#hdrhistogram-php)

A PHP extension wrapping the [HdrHistogram C API](https://github.com/HdrHistogram/HdrHistogram_c).

License: New-BSD 2 Clause

Description
-----------

[](#description)

HdrHistogram: A High Dynamic Range Histogram.

A Histogram that supports recording and analyzing sampled data value counts across a configurable integer value range with configurable value precision within the range. Value precision is expressed as the number of significant digits in the value recording, and provides control over value quantization behavior across the value range and the subsequent value resolution at any given level.

[Website/Documentation](http://hdrhistogram.org)

Installation
------------

[](#installation)

This extension depends on HdrHistogram C API (version 0.9.8 or higher), you can install it easily:

```
$ git clone git@github.com:HdrHistogram/HdrHistogram_c
$ cd HdrHistogram_c
$ cmake .
$ make
$ sudo make install

```

Then you can compile this extension:

```
$ phpize
$ ./configure
$ make
$ sudo make install

```

You can then load the extension in your PHP.ini:

```
extension=hdrhistogram.so

```

Example
-------

[](#example)

The API is very similar to the C code:

```
