PHPackages                             datadog/php-datadogstatsd - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. datadog/php-datadogstatsd

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

datadog/php-datadogstatsd
=========================

An extremely simple PHP datadogstatsd client

1.7.1(9mo ago)19026.4M↓37.3%84[9 issues](https://github.com/DataDog/php-datadogstatsd/issues)[1 PRs](https://github.com/DataDog/php-datadogstatsd/pulls)15MITPHPPHP &gt;=5.6.0CI passing

Since Jun 4Pushed 9mo ago45 watchersCompare

[ Source](https://github.com/DataDog/php-datadogstatsd)[ Packagist](https://packagist.org/packages/datadog/php-datadogstatsd)[ Docs](https://www.datadoghq.com/)[ RSS](/packages/datadog-php-datadogstatsd/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (3)Versions (68)Used By (15)

PHP DataDog StatsD Client
=========================

[](#php-datadog-statsd-client)

[![CircleCI](https://camo.githubusercontent.com/9ee49fecf491cffa8567c7723a0427e0523ae9b468d4671dd63eee623b571b34/68747470733a2f2f636972636c6563692e636f6d2f67682f44617461446f672f7068702d64617461646f677374617473642f747265652f6d61737465722e7376673f7374796c653d737667)](https://circleci.com/gh/DataDog/php-datadogstatsd/tree/master)[![Author](https://camo.githubusercontent.com/b90a64c7a39bd7091929d8af05dbb0832b1f7ffc83a3194e169fe0d29001f6d6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d4064617461646f672d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/datadog)[![Packagist Version](https://camo.githubusercontent.com/65509bbf06a899b23667e1b97c1afbc2c8eb8947974f03c78f550e896295706f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64617461646f672f7068702d64617461646f677374617473642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/datadog/php-datadogstatsd)[![Total Downloads](https://camo.githubusercontent.com/5b306c04af5f46a08110ec4c26e684ddb1aa322c39e9004386f430c378e527e1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64617461646f672f7068702d64617461646f677374617473642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/datadog/php-datadogstatsd)

This is an extremely simple PHP [DogStatsD](https://docs.datadoghq.com/developers/dogstatsd/?code-lang=php) client.

**Requires PHP &gt;= 5.6.0.**

See [CHANGELOG.md](CHANGELOG.md) for changes.

*For a Laravel-specific implementation that wraps this library, check out [laravel-datadog-helper](https://github.com/chaseconey/laravel-datadog-helper).*

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

[](#installation)

Add the following to your `composer.json`:

```
"datadog/php-datadogstatsd": "1.6.*"

```

The first version shipped in composer is *0.0.3*

Or manually clone this repository and set it up with `require './src/DogStatsd.php'.`

Once installed, turn on the socket extension to PHP which must be enabled at compile time by giving the `--enable-sockets` option to **configure**.

Configuration
-------------

[](#configuration)

To instantiate a DogStatsd object using `composer`:

```
