PHPackages                             tarjei/statsdbundle - 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. tarjei/statsdbundle

AbandonedSymfony-bundle

tarjei/statsdbundle
===================

Bundle for sending statistics to graphite via statsd.

121.2k2[1 issues](https://github.com/tarjei/StatsDBundle/issues)PHP

Since Oct 8Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

\# DEPRECATED

Old code.

StatsDBundle
------------

[](#statsdbundle)

This is a simple bundle that creates a statsd service that you can use to send counters via statsd to graphite.

It is based on the example statsd client found in the statd package:

Statsd
------

[](#statsd)

Statsd is a network daemon for aggregating statistics (counters and timers), rolling them up, then sending them to \[graphite\]\[graphite\].

(\[Etsy\]\[etsy\]) \[blogged\]\[blog post\] about how it works and why they created it

### Instalation

[](#instalation)

Add to deps:

```
[SMStatsDBundle]
    git=git://github.com:tarjei/StatsDBundle.git
    target=/bundles/SM/StatsDBundle
```

Then register the bundle with your kernel:

```
// app/AppKernel.php
// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new SM\StatsDBundle\SMStatsDBundle(),
    // ...
);
```

Make sure that you also register the namespaces with the autoloader:

```
// app/autoload.php
$loader->registerNamespaces(array(
    // ...
    'SM\\StatsDBundle' => __DIR__ . '/../vendor/bundles',
));
```

### Configuration

[](#configuration)

The plugin expects statsd to be running localy

In your prod/dev environment:

```
# app/config/config.yml
statsd:
    host:
    port:
```

Defaults:

```
statsd:
    host: localhost
    port: 8125
    noop: false
```

The noop option is if you want the client to be called but not send a signal or connect to statsd.

### Usage

[](#usage)

Sample usage:

```
// MyController.com
$stats = $this->get('statsd');
$stats->increment("users");
$stats->timing("querytime", $time)
```

For more info see the StatsD.php file.

### TODO

[](#todo)

- Add loggingservice into the mix
- Consider how we should handle empty stats
- better example

### Contributors

[](#contributors)

In lieu of a list of contributors, check out the commit history for the project.

\[graphite\]: \[etsy\]: \[blog post\]: \[node\]: \[udp\]:

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

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://www.gravatar.com/avatar/b1cd4ef49c989e7df8c5db0c55dca081dbe0a50f5af8fadc494b27fafb602d39?d=identicon)[tarjei](/maintainers/tarjei)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/tarjei-statsdbundle/health.svg)

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

PHPackages © 2026

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