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

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

doclassif/laravel-influxdb2
===========================

A service made to provide, set up and use the library from influxdata/influxdb-client-php in Laravel.

1.0.0(1y ago)095MITPHP

Since Sep 9Pushed 1y ago1 watchersCompare

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

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

Register service provider.
--------------------------

[](#register-service-provider)

```
```php
'providers' => [
//  ...
    Kali\InfluxDB\Providers\ServiceProvider::class,
]
```
```php
'aliases' => [
//  ...
    'InfluxDB' => Kali\InfluxDB\Facades\InfluxDB::class,
]
```

```

- Define env variables to connect to InfluxDB

```
INFLUXDB_HOST=
INFLUXDB_PORT=
INFLUXDB_TOKEN=
INFLUXDB_BUCKET=
INFLUXDB_ORG=
```

- Write this into your terminal inside your project ```
    php artisan vendor:publish

    ```

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

[](#reading-data)

```
