PHPackages                             gopaljha/laravel-datadog - 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. gopaljha/laravel-datadog

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

gopaljha/laravel-datadog
========================

A simple package to wrap DataDog API for Timeseries metrics

v2.3.2(6y ago)1241MITPHPPHP &gt;=5.6.4CI failing

Since Apr 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/GopalJha/laravel-datadog)[ Packagist](https://packagist.org/packages/gopaljha/laravel-datadog)[ RSS](/packages/gopaljha-laravel-datadog/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (10)Used By (0)

[![GitHub Issues](https://camo.githubusercontent.com/efc6987825269f57da257ad880dede146e46f5aed363be1c2baee88365af8be4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f476f70616c4a68612f6c61726176656c2d64617461646f67)](https://packagist.org/packages/gopaljha/laravel-datadog)[![GitHub Forks](https://camo.githubusercontent.com/d25ad979f889cc8d396b9ff4495ee0363493348ae1b560fa02f39a8d2f9de6aa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f476f70616c4a68612f6c61726176656c2d64617461646f67)](https://packagist.org/packages/gopaljha/laravel-datadog)[![GitHub Stars](https://camo.githubusercontent.com/5494611d301d294e979a7266f9767fb685aca02df7b10fd84f7ae409e836c33c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f476f70616c4a68612f6c61726176656c2d64617461646f67)](https://packagist.org/packages/gopaljha/laravel-datadog)[![GitHub License](https://camo.githubusercontent.com/9ce1af620ed35c535714b120eec3616317792435e88f12a0090b9cbba807f4b3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f476f70616c4a68612f6c61726176656c2d64617461646f67)](https://github.com/GopalJha/laravel-datadog/blob/master/LICENSE)[![Twitter](https://camo.githubusercontent.com/12d7fb101b96f1f7db186c21a679b256cbd6a64ec229791ca18cc284eb481248/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c3f7374796c653d736f6369616c2675726c3d6874747073253341253246253246747769747465722e636f6d253246676f70616c7073646a68613839)](https://twitter.com/gopalpsdjha89)

Laravel DataDog
===============

[](#laravel-datadog)

A simple package to use DataDog Series Metric using their API via TCP

Why?
----

[](#why)

Because some people cannot install the DataDog Agent or StatsD. So we have to use DataDog API to send data. Using the API losses the advantage of using UDP (unblocking) calls. This package gives you a nice way to send metric information and also make sure the jobs are queued.

Other packages
--------------

[](#other-packages)

This package should only be used if you also find yourslef in the unique situation where you cannot use the DataDog Agent. Make sure you investigate the below packages first.

-
-

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

[](#installation)

Pull in the package using Composer

```
composer require gopaljha/laravel-datadog

```

```
$providers = [
    GopalJha\LaravelDataDog\LaravelDataDogServiceProvider::class,
]
```

Publish the config file

```
php artisan vendor:publish --provider="GopalJha\LaravelDataDog\LaravelDataDogServiceProvider" --tag=config
```

Set your DataDog API key in your `.env` file using the key `DATADOG_KEY`.

How to use
----------

[](#how-to-use)

### Increment a Metric

[](#increment-a-metric)

```
\DataDog::increment('app.pageview');
```

### Increment a Metric with tagging and Host

[](#increment-a-metric-with-tagging-and-host)

A powerful feature of DataDog is the ability to tag things.

```
\DataDog::increment('app.pageview', ['tag' => 'one', 'tag' => 'two']);
```

You can also send a custom host if you require.

```
\DataDog::increment('app.pageview', ['tag' => 'one', 'tag' => 'two'], 'example.com');
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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.

###  Release Activity

Cadence

Every ~1 days

Total

9

Last Release

2217d ago

Major Versions

v1.0.2 → v2.02020-04-12

PHP version history (2 changes)v1.0.0PHP &gt;=5.6

v2.3.2PHP &gt;=5.6.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f2d6086e1cfd24958df2bd1ef71ff139b1f2982edad580fac8b71c89fc5ed58?d=identicon)[gopalpsdjha89](/maintainers/gopalpsdjha89)

---

Top Contributors

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

---

Tags

laravelDataDog

### Embed Badge

![Health badge](/badges/gopaljha-laravel-datadog/health.svg)

```
[![Health](https://phpackages.com/badges/gopaljha-laravel-datadog/health.svg)](https://phpackages.com/packages/gopaljha-laravel-datadog)
```

###  Alternatives

[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14642.7k1](/packages/guanguans-laravel-exception-notify)[tobiasdierich/gauge

An easy to use application performance monitor.

14413.1k](/packages/tobiasdierich-gauge)

PHPackages © 2026

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