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

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

jamesmills/laravel-datadog
==========================

A simple package to wrap DataDog API for Timeseries metrics

2.2.1(6y ago)34712MITPHPPHP &gt;=7

Since Oct 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/jamesmills/laravel-datadog)[ Packagist](https://packagist.org/packages/jamesmills/laravel-datadog)[ RSS](/packages/jamesmills-laravel-datadog/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (8)Used By (0)

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

[](#laravel-datadog)

[![Packagist](https://camo.githubusercontent.com/b9b86bfd6a95691217281b7c6de335a43bf348414960510ac303e18ef9410800/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a616d65736d696c6c732f6c61726176656c2d64617461646f672e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/jamesmills/laravel-datadog)[![Packagist](https://camo.githubusercontent.com/32cc125e9b69675f93535c9f6e3d7b22dd2fb205a9b452540227005948dcad2d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a616d65736d696c6c732f6c61726176656c2d64617461646f672e7376673f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/32cc125e9b69675f93535c9f6e3d7b22dd2fb205a9b452540227005948dcad2d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a616d65736d696c6c732f6c61726176656c2d64617461646f672e7376673f7374796c653d666f722d7468652d6261646765)![Packagist](https://camo.githubusercontent.com/98168abddc585f63f6956be1342e314d1a0ee8ca457e1d643c14c3bc8e328290/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6a616d65736d696c6c732f6c61726176656c2d64617461646f672e7376673f7374796c653d666f722d7468652d6261646765)[![Buy us a tree](https://camo.githubusercontent.com/29d53ce051d3871f4492b3eccf6dc16a194fdfa629b690b718c2867aaf2da885/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4275792532306d6525323061253230747265652d2546302539462538432542332d6c69676874677265656e3f7374796c653d666f722d7468652d6261646765)](https://offset.earth/jamesmills)

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 jamesmills/laravel-datadog

```

Publish the config file

```
php artisan vendor:publish --provider="JamesMills\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', ['my:tag:one', 'my:tag:two']);
```

You can also send a custom host if you require.

```
\DataDog::increment('app.pageview', ['my:tag:one', 'my:tag:two'], 'my.host.com');
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Treeware
--------

[](#treeware)

You're free to use this package, but if it makes it to your production environment I would highly appreciate you buying the world a tree.

It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to [plant trees](https://www.bbc.co.uk/news/science-environment-48870920). If you contribute to my forest you’ll be creating employment for local families and restoring wildlife habitats.

You can buy trees at my forest here [offset.earth/jamesmills](https://offset.earth/jamesmills)

Credits
-------

[](#credits)

- [James Mills](https://github.com/jamesmills)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~5 days

Total

7

Last Release

2357d ago

Major Versions

0.1.0 → 1.0.02019-10-27

1.0.1 → 2.0.12019-10-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed70279d16b62163988b721fb266ade97fab65de1a570ecd47b5f93b0202961f?d=identicon)[jamesmills](/maintainers/jamesmills)

---

Top Contributors

[![jamesmills](https://avatars.githubusercontent.com/u/557096?v=4)](https://github.com/jamesmills "jamesmills (18 commits)")

---

Tags

laravelDataDog

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/jamesmills-laravel-datadog/health.svg)](https://phpackages.com/packages/jamesmills-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)
