PHPackages                             darkwolf66/laravel-influxdb2 - 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. darkwolf66/laravel-influxdb2

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

darkwolf66/laravel-influxdb2
============================

A service made to provide, set up and use the library from influxdata influx client php 2 in Laravel.

v1.0.4(2y ago)02MITPHP

Since Aug 10Pushed 2y agoCompare

[ Source](https://github.com/darkwolf66/laravel-influxdb2)[ Packagist](https://packagist.org/packages/darkwolf66/laravel-influxdb2)[ RSS](/packages/darkwolf66-laravel-influxdb2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (4)Used By (0)

Laravel Influxdb2
=================

[](#laravel-influxdb2)

A service made to provide, set up and use the library from influxdata [influxdb-client-php](https://github.com/influxdata/influxdb-client-php) in Laravel.

Installing
----------

[](#installing)

- Install by composer command:

```
composer require amantinetti/laravel-influxdb2
```

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

```
"require": {
    "amantinetti/laravel-influxdb2": "^0.0.1"
}
```

This package use auto-discover, if using less than version laravel 5.5 you must use below settings
--------------------------------------------------------------------------------------------------

[](#this-package-use-auto-discover-if-using-less-than-version-laravel-55-you-must-use-below-settings)

- Add this lines to yours config/app.php (Use only with Laravel version less than 5.5 )

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

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

- Define env variables to connect to InfluxDB

```
INFLUXDB_URL=http://localhost:8086
INFLUXDB_TOKEN=my-token
INFLUXDB_BUCKET=my-bucket
INFLUXDB_ORG=my-org
```

- Write this into your terminal inside your project

```
php artisan vendor:publish
```

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

[](#reading-data)

```
