PHPackages                             ifixit/statsd-php-client - 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. ifixit/statsd-php-client

ActiveLibrary

ifixit/statsd-php-client
========================

A statsd (thanks Etsy!) client for php

19206.4k↑18.9%8PHP

Since Oct 1Pushed 5y ago30 watchersCompare

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

READMEChangelogDependenciesVersions (8)Used By (0)

This php library makes it simple to send stats you care about to a statsd daemon and has a little more functionality (and tests) than Etsy's default PHP implementation.

See:

The biggest difference is the addition of a Queue which can be paused and flushed. This allows you to track hundreds of stats in a short time while still only sending one UDP packet at the end of whatever it is you are doing.

Usage
-----

[](#usage)

This is meant to be subclassed and the static `$host` and `$port` variables overridden.

```
require('StatsD.php');

StatsD::increment("something");

StatsD::timing("something", $time);

StatsD::gauge("something", $value);

// Arbitrary valued counters (instead of inc / dec)
StatsD::updateStat("something", 42, 0.1); // 0.1 sample rate

// Buffer UDP output packets
StatsD::pauseStatsOutput();
// Bunch of StatsD::increment() or others

// Sends one UDP packet instead of one for each call
StatsD::flushStatsOutput();
```

### Continuous Integration

[](#continuous-integration)

Tested by Travis CI: [![Build Status](https://camo.githubusercontent.com/19413f39369c17e7a299fbbbb21764fdfdd71e2f690933379dcdbd69b23bf4b9/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6946697869742f7374617473642d7068702d636c69656e742e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/iFixit/statsd-php-client)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.3% 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/26855?v=4)[Daniel Beardsley](/maintainers/danielbeardsley)[@danielbeardsley](https://github.com/danielbeardsley)

---

Top Contributors

[![danielbeardsley](https://avatars.githubusercontent.com/u/26855?v=4)](https://github.com/danielbeardsley "danielbeardsley (39 commits)")[![djmetzle](https://avatars.githubusercontent.com/u/6876047?v=4)](https://github.com/djmetzle "djmetzle (5 commits)")[![netzkind](https://avatars.githubusercontent.com/u/2842102?v=4)](https://github.com/netzkind "netzkind (2 commits)")[![JoyceBabu](https://avatars.githubusercontent.com/u/502942?v=4)](https://github.com/JoyceBabu "JoyceBabu (1 commits)")[![xiongchiamiov](https://avatars.githubusercontent.com/u/23369?v=4)](https://github.com/xiongchiamiov "xiongchiamiov (1 commits)")

### Embed Badge

![Health badge](/badges/ifixit-statsd-php-client/health.svg)

```
[![Health](https://phpackages.com/badges/ifixit-statsd-php-client/health.svg)](https://phpackages.com/packages/ifixit-statsd-php-client)
```

PHPackages © 2026

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