PHPackages                             pdffiller/laravel-influx-provider - 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. pdffiller/laravel-influx-provider

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

pdffiller/laravel-influx-provider
=================================

Service provider to set up and use InfluxDB SDK in Laravel 5

v1.6.6(6y ago)186.4k9MITPHPPHP ^5.6 || ^7.0 || ^7.1.3CI failing

Since May 5Pushed 1y ago2 watchersCompare

[ Source](https://github.com/pdffiller/laravel-influx-provider)[ Packagist](https://packagist.org/packages/pdffiller/laravel-influx-provider)[ RSS](/packages/pdffiller-laravel-influx-provider/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (9)Dependencies (6)Versions (20)Used By (0)

Laravel InfluxDB provider
=========================

[](#laravel-influxdb-provider)

A minimal service provider to set up and use InfluxDB SDK in Laravel 5

### Installation

[](#installation)

- Add a line to the *require* section of `composer.json` and execute `$ composer install`

```
"require": {
//  ...
    "pdffiller/laravel-influx-provider": "^1.6"
}
```

- Add these lines to `config/app.php`

```
'providers' => [
//  ...
    Pdffiller\LaravelInfluxProvider\InfluxDBServiceProvider::class,
]

'aliases' => [
// ...
    'Influx' => Pdffiller\LaravelInfluxProvider\InfluxDBFacade::class,
]
```

- Define env variables to connect to InfluxDB

```
LARAVEL_INFLUX_PROVIDER_PROTOCOL=http
LARAVEL_INFLUX_PROVIDER_USER=some_user
LARAVEL_INFLUX_PROVIDER_PASSWORD=some_password
LARAVEL_INFLUX_PROVIDER_HOST=host
LARAVEL_INFLUX_PROVIDER_PORT=8086
LARAVEL_INFLUX_PROVIDER_DATABASE=database_name
LARAVEL_INFLUX_PROVIDER_VERIFY_SSL=false
LARAVEL_INFLUX_PROVIDER_TIMEOUT=0
LARAVEL_INFLUX_PROVIDER_CONNECT_TIMEOUT=0

```

### How to use

[](#how-to-use)

```
$client = new \Influx;
$data   = $client::query('SELECT * from "data" ORDER BY time DESC LIMIT 1');
```

```
$point = [
    new \InfluxDB\Point(
        'name' => 'some_name',
        'value' => 1, // some value for some_name
        'tags' => [
            // array of string values
        ],
        'fields' => [
            // array of numeric values
        ],
        'timestamp' => exec('date +%s%N')  // timestamp in nanoseconds on Linux ONLY
    )
];
try {
    Influx::writePoints($point);
} catch (\InfluxDB\Exception $e) {
    // something is wrong, track this
}
```

Also you can send data to another database like this:

```
Influx::selectDB($dbName)->writePoints($point);
```

License
-------

[](#license)

[airSlate](https://airslate.com/) and any contributors to this project each grants you a license, under its respective copyrights, to the Laravel InfluxDB provider and other content in this repository under the MIT License, see the [LICENSE](LICENSE) file for more information.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~118 days

Total

18

Last Release

2397d ago

PHP version history (2 changes)1.2.1PHP &gt;=5.6

v1.6.2PHP ^5.6 || ^7.0 || ^7.1.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/97049a4bd2f9716e97749f93fe32f8da0a3eeda4192772dec73a6a2531294cea?d=identicon)[klay](/maintainers/klay)

![](https://avatars.githubusercontent.com/u/17018358?v=4)[PDFfiller](/maintainers/pdffiller)[@pdffiller](https://github.com/pdffiller)

---

Top Contributors

[![apictapx](https://avatars.githubusercontent.com/u/2868992?v=4)](https://github.com/apictapx "apictapx (14 commits)")[![pvgennip](https://avatars.githubusercontent.com/u/7629987?v=4)](https://github.com/pvgennip "pvgennip (12 commits)")[![sergeyklay](https://avatars.githubusercontent.com/u/1256298?v=4)](https://github.com/sergeyklay "sergeyklay (10 commits)")[![sp1r1n](https://avatars.githubusercontent.com/u/25150429?v=4)](https://github.com/sp1r1n "sp1r1n (3 commits)")[![JoelESvensson](https://avatars.githubusercontent.com/u/6786740?v=4)](https://github.com/JoelESvensson "JoelESvensson (3 commits)")[![brycefranzen](https://avatars.githubusercontent.com/u/6920030?v=4)](https://github.com/brycefranzen "brycefranzen (2 commits)")[![HexRx](https://avatars.githubusercontent.com/u/3863391?v=4)](https://github.com/HexRx "HexRx (1 commits)")[![derheyne](https://avatars.githubusercontent.com/u/6844603?v=4)](https://github.com/derheyne "derheyne (1 commits)")

---

Tags

corepdffillerplatformlaravelInflux DB

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pdffiller-laravel-influx-provider/health.svg)

```
[![Health](https://phpackages.com/badges/pdffiller-laravel-influx-provider/health.svg)](https://phpackages.com/packages/pdffiller-laravel-influx-provider)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k54.1M11.1k](/packages/illuminate-database)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.1M23](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

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

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

207.8k1](/packages/lemaur-eloquent-publishing)

PHPackages © 2026

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