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

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

ekino/metric-bundle
===================

Integrate Ekino PHP Metric into Symfony2

1413PHP

Since Mar 25Pushed 13y agoCompare

[ Source](https://github.com/ekino/EkinoMetricBundle)[ Packagist](https://packagist.org/packages/ekino/metric-bundle)[ RSS](/packages/ekino-metric-bundle/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#ekino-php-metric)

[![Build Status](https://camo.githubusercontent.com/201821544af2e663d8e0ab4cf0564138414879062ae9b8ad3f16f7bbd004b9ad/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f656b696e6f2f456b696e6f4d657472696342756e646c652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/ekino/EkinoMetricBundle)

Integrate Ekino PHP Metric into Symfony2

**WARNING** - This bundle works with pending pull requests :

- [schmittjoh/cg-library#6](https://github.com/schmittjoh/cg-library/pull/6)
- [schmittjoh/JMSAopBundle#13](https://github.com/schmittjoh/JMSAopBundle/pull/13)

Requirements
------------

[](#requirements)

- This code must runs with [CollectD](http://collectd.org/) or [StatsD](https://github.com/etsy/statsd/) running
- Users must have a good understanding on collecting and aggregating data/solution

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

[](#installation)

### Using Composer

[](#using-composer)

Use `composer.phar`:

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

You just have to specify the version you want : `dev-master`. 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-bundle": "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/metric-bundle
```

### Configuration

[](#configuration)

```
ekino_metric:
    metrics:
        - { type: timer, service: "event_dispatcher::dispatch",   name: "php.symfony.event_dispatcher.{arg0}" }
        - { type: timer, service: "http_kernel::handle",          name: "php.symfony.http_kernel.handle" }
        - { type: timer, service: "templating::render",           name: "php.symfony.twig.render.{arg0}" }
        - { type: timer, service: "mailer::send",                 name: "php.mailer.send" }
        - { type: timer, service: "router::match",                name: "php.symfony.router.match"}
        - { type: timer, service: "router::generate",             name: "php.symfony.router.generate.{arg0}"}

    reporter: ekino.metric.reporter.statsd # ekino.metric.reporter.collectd

    reporters:
        collectd:
            hostname:   web1-php    # the hostname to send to collectd
            udp_host:   localhost   # the host where the UDP stream need to be send
            udp_port:   25826       # the port where the UDP stream need to be send

        statsd:
            udp_host:   localhost
            udp_port:   8125

        newrelic:
            application_name: Awesome Aplication # (mandatory, default value in newrelic is PHP Application)
            api_key:                             # New Relic API
```

#### Doctrine Collector

[](#doctrine-collector)

If you want to collect information about Doctrine query, you need to enable the doctrine profiler.

```
doctrine:
    dbal:
        default_connection: default
        connections:
            default:
                profiling: true
                driver:    %database_driver%
                dbname:    %database_name%
                user:      %database_user%
                host:      %database_host%
                password:  %database_password%

ekino_metric:
    [...]
    collectors: # configure built in collectors
        doctrine:
            prefix: 'mysql.query'

    collect_from:   # configure services to retrieve metric from
        - ekino.metric.collector.doctrine
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/574481?v=4)[Ekino](/maintainers/ekino)[@ekino](https://github.com/ekino)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ekino-metric-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/ekino-metric-bundle/health.svg)](https://phpackages.com/packages/ekino-metric-bundle)
```

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M918](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[jokkedk/webgrind

Webgrind is a Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job.

3.3k193.0k](/packages/jokkedk-webgrind)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)

PHPackages © 2026

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