PHPackages                             louiswe/laravel-influxdb - 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. louiswe/laravel-influxdb

ActiveLibrary

louiswe/laravel-influxdb
========================

InfluxDB service provider for laravel

1.1.4(4y ago)0381MITPHPPHP ^7|^8

Since Jan 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/louisweDE/laravel-influxdb2)[ Packagist](https://packagist.org/packages/louiswe/laravel-influxdb)[ RSS](/packages/louiswe-laravel-influxdb/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (6)Dependencies (2)Versions (7)Used By (0)

Laravel Service Provider for InfluxDB2
======================================

[](#laravel-service-provider-for-influxdb2)

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

[](#installation)

### 1. Install via composer

[](#1-install-via-composer)

`composer require louiswe/laravel-influxdb`

### 2. Configuration

[](#2-configuration)

```
INFLUXDB_HOST = 127.0.0.1
INFLUXDB_PORT = 8086
INFLUXDB_PORT_UDP = 8094
INFLUXDB_USER =
INFLUXDB_SSL = false
INFLUXDB_TOKEN = ""
INFLUXDB_ORGANISATION =
INFLUXDB_DEFAULT_BUCKET =
INFLUXDB_VERIFY_SSL = false
INFLUXDB_TIMEOUT = 1
```

Also `APP_ENV` has to be set in your `.env` file

To use udp telegraf has to be installed and socket listener plugin has to be activated

### 3. Publish ServiceProvider

[](#3-publish-serviceprovider)

`php artisan vendor:publish`

The ServiceProvider will set up the library, so that you can use it everywhere in your project

### 4. Add default tags (optional)

[](#4-add-default-tags-optional)

To add default tags modify the `config/influxdb.php`

```
return [
    // ...
    'tags'        => ['environment' => 'development', 'host' => 'server1']
    // ...
];
```

Usage
-----

[](#usage)

There are some predefined functions to make it simpler to write data to InfluxDB, if you have any suggestions how to improve it further fell free to pass them to me.

```
use InfluxDB2\Point;
use louiswe\InfluxDB\Facades\InfluxDB;

// Increment success or failure measuremens
InfluxDB::increment("login"); // ["success" => 1]
InfluxDB::increment("login", false); // ["failure" => 1]

$tags = ['environment' => 'development', 'server' => 1];
$fields = ['success' => 1];

// Write Point to InfluxDB
$point = new Point('login', $tags, $fields);
InfluxDB::writePoint($point);

// Write directly to InfluxDB
InfluxDB::write('login', $tags, $fields);
```

Furthermore, you can access the methods of the library [influxdb-client-php](https://github.com/influxdata/influxdb-client-php)directly, for example:

```
use louiswe\InfluxDB\Facades\InfluxDB;

InfluxDB::createQueryApi();
InfluxDB::createUdpWriter();
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

6

Last Release

1498d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ff0ec4b62f389f73e67663a0dfb74d6e35454c79a500de274e3ede8cac4630d?d=identicon)[louiswe](/maintainers/louiswe)

---

Top Contributors

[![louisweDE](https://avatars.githubusercontent.com/u/36513386?v=4)](https://github.com/louisweDE "louisweDE (2 commits)")

### Embed Badge

![Health badge](/badges/louiswe-laravel-influxdb/health.svg)

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

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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