PHPackages                             ekino/metric - 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. ekino/metric

AbandonedArchivedLibrairie

ekino/metric
============

Provide base class to collect and store metric

33312PHP

Since Feb 22Pushed 13y ago6 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Ekino PHP Metric
================

[](#ekino-php-metric)

[![Build Status](https://camo.githubusercontent.com/6972ef88be5084b02f847774f785fde19e59095152ad31e565b5ea03b565c080/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f656b696e6f2f7068702d6d65747269632e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/ekino/php-metric)

This library provides base classes to collect and publish metrics.

Metric Reporters :

- CollectD
- StatsD
- NewRelic
- XHGui

Metric Collectors :

- Doctrine
- Xhprof
- Timer
- Memory Usage

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

[](#installation)

### Using Composer

[](#using-composer)

Use `composer.phar`:

```
$ php composer.phar require ekino/metric
```

You just have to specify the version you want : `master-dev`. It will add the package in your `composer.json` file and install it.

Or you can do it by yourself, first, add the following to your `composer.json` file:

```
// composer.json
{
    // ...
    require: {
        // ...
        "ekino/metric": "dev-master"
    }
}
```

Then, you can install the new dependencies by running Composer's `update`command from the directory where your `composer.json` file is located:

```
$ php composer.phar update ekino/php-metric
```

Usage with CollectD
-------------------

[](#usage-with-collectd)

```
