PHPackages                             estvoyage/statsd - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. estvoyage/statsd

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

estvoyage/statsd
================

An east-oriented StatsD client

46PHP

Since Apr 29Pushed 11y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

*estvoyage\\statsd* [![Build Status](https://camo.githubusercontent.com/fe3df30f99734651b075bee0e428613eeed8ba426b4df39ccd2ce50f71ed138e/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f657374766f796167652f7374617473642e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/estvoyage/statsd) [![Coverage Status](https://camo.githubusercontent.com/ddaf09491567548107ead6cd718c2d10d00fbc30d0fdc94902493d096f5a583f/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f657374766f796167652f7374617473642f62616467652e706e67)](https://coveralls.io/r/estvoyage/statsd)
==============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#estvoyagestatsd--)

An east-oriented StatsD client written in PHP!
----------------------------------------------

[](#an-east-oriented-statsd-client-written-in-php)

Just like [statsd-php](https://github.com/domnikl/statsd-php), *estvoyage\\statsd* is a [StatsD](https://github.com/etsy/statsd/wiki) client written in PHP.
However, it was designed using the east compass, so all public method in all classes return `$this`, a new instance of the class or any value which is not a property of the class.
Why? Because the rigorous application of this unique rule decreases coupling and the amount of code that needs to be written, while increasing the clarity, cohesion, flexibility, reuse and testability of that code.
In fact, using east-oriented principle force using abstraction via interface and the lack of getter force using the *tell, don't ask* principle, inversion of control, depedency injection and interfaces.

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

[](#installation)

Minimal PHP version to use *estvoyage\\statsd* is 5.6.
The recommended way to install it is through [Composer](http://getcomposer.org/), just add this in your `composer.json` and execute `php composer.phar install`:

```
{
    "require": {
        "estvoyage/statsd": "@dev"
    }
}
```

Usage
-----

[](#usage)

In a nutshell:

```
