PHPackages                             zettich/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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. zettich/laravel-influxdb

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

zettich/laravel-influxdb
========================

A service made to provide, set up and use the library from influxdata influxphp in Laravel.

1.0.5(8y ago)010MITPHP

Since Jun 13Pushed 6y agoCompare

[ Source](https://github.com/zettich/laravel-influxdb)[ Packagist](https://packagist.org/packages/zettich/laravel-influxdb)[ RSS](/packages/zettich-laravel-influxdb/feed)WikiDiscussions master Synced yesterday

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

Laravel Influxdb
================

[](#laravel-influxdb)

A service made to provide, set up and use the library from influxdata [influxdb-php](https://github.com/influxdata/influxdb-php/) in Laravel. Forked from [tray-labs/laravel-influxdb](https://github.com/tray-labs/laravel-influxdb/) package, Laravel 6 compatiblity added

Installing
----------

[](#installing)

- Add this line to require section of `composer.json` and execute on your terminal `$ composer install`

```
"require": {
    "zettich/laravel-influxdb": "*"
}

```

- Add this lines to yours config/app.php

```
'providers' => [
//  ...
    Zettich\InfluxDB\Providers\ServiceProvider::class,
]

```

```
'aliases' => [
//  ...
    'InfluxDB' => Zettich\InfluxDB\Facades\InfluxDB::class,
]

```

- Define env variables to connect to InfluxDB

```
INFLUXDB_HOST=localhost
INFLUXDB_PORT=8086
INFLUXDB_USER=some_user
INFLUXDB_PASSWORD=some_password
INFLUXDB_SSL=false
INFLUXDB_VERIFYSSL=false
INFLUXDB_TIMEOUT=0
INFLUXDB_DBNAME=some_database
```

- Write this into your terminal inside your project

```
php artisan vendor:publish
```

Reading Data
------------

[](#reading-data)

```
