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. [Database &amp; ORM](/categories/database)
4. /
5. louiswe/laravel-influxdb

ActiveLibrary[Database &amp; ORM](/categories/database)

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 3w 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 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

1549d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12616881?v=4)[louiswe](/maintainers/louiswe)[@LouisWE](https://github.com/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

[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[lemaur/eloquent-publishing

218.1k1](/packages/lemaur-eloquent-publishing)[laravel-liberu/laravel-gedcom

A package that converts gedcom files to Eloquent models

782.5k1](/packages/laravel-liberu-laravel-gedcom)

PHPackages © 2026

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