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

AbandonedArchivedLibrary

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 ago12 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 1mo 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

41

—

FairBetter than 89% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community22

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

2352d 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://www.gravatar.com/avatar/c420ed0d3564b7173860d1ae1b7ff28636f5f6ddf12b113a76b96a23d182b208?d=identicon)[pdffiller](/maintainers/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

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[timacdonald/log-fake

A drop in fake logger for testing with the Laravel framework.

4235.9M56](/packages/timacdonald-log-fake)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)[onlime/laravel-http-client-global-logger

A global logger for the Laravel HTTP Client

1935.1k](/packages/onlime-laravel-http-client-global-logger)[asciisd/knet

Knet package is provides an expressive, fluent interface to KNet's payment services.

141.1k](/packages/asciisd-knet)

PHPackages © 2026

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