https://github.com/austinheap/laravel-database-influxdb
A package for accessing InfluxDB from Laravel 5.5+, based on configuration settings.
https://github.com/austinheap/laravel-database-influxdb
composer composer-package database databases influx influxdb laravel laravel-5-package laravel5 laravel55 php php7 php70 php71 php72 timeseries timeseries-data timeseries-database
Last synced: 8 months ago
JSON representation
A package for accessing InfluxDB from Laravel 5.5+, based on configuration settings.
- Host: GitHub
- URL: https://github.com/austinheap/laravel-database-influxdb
- Owner: austinheap
- Archived: true
- Created: 2017-11-16T05:22:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-21T21:55:53.000Z (about 7 years ago)
- Last Synced: 2025-06-07T03:32:20.171Z (12 months ago)
- Topics: composer, composer-package, database, databases, influx, influxdb, laravel, laravel-5-package, laravel5, laravel55, php, php7, php70, php71, php72, timeseries, timeseries-data, timeseries-database
- Language: PHP
- Homepage: https://packagist.org/packages/austinheap/laravel-database-influxdb
- Size: 569 KB
- Stars: 13
- Watchers: 1
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# Laravel 5.5+ InfluxDB Database Package
[](https://github.com/austinheap/laravel-database-influxdb/releases)
[](https://packagist.org/packages/austinheap/laravel-database-influxdb)
[](https://travis-ci.org/austinheap/laravel-database-influxdb)
[](https://gemnasium.com/github.com/austinheap/laravel-database-influxdb)
[](https://scrutinizer-ci.com/g/austinheap/laravel-database-influxdb/)
[](https://styleci.io/repos/110926889)
[](https://codeclimate.com/github/austinheap/laravel-database-influxdb/maintainability)
[](https://codeclimate.com/github/austinheap/laravel-database-influxdb/test_coverage)
[](https://insight.sensiolabs.com/projects/dc020687-c653-42f0-b006-79d5c7742fb0)
## A package for accessing InfluxDB from Laravel 5.5+, based on configuration settings.
There is [documentation for `laravel-database-influxdb` online](https://austinheap.github.io/laravel-database-influxdb/),
the source of which is in the [`docs/`](https://github.com/austinheap/laravel-database-influxdb/tree/master/docs)
directory. The most logical place to start are the [docs for the `InfluxDbServiceProvider` class](https://austinheap.github.io/laravel-database-influxdb/classes/AustinHeap.Database.InfluxDb.InfluxDbServiceProvider.html).
## Installation
### Step 1: Composer
Via Composer command line:
```bash
$ composer require austinheap/laravel-database-influxdb
```
Or add the package to your `composer.json`:
```json
{
"require": {
"austinheap/laravel-database-influxdb": "0.1.*"
}
}
```
### Step 2: Enable the package (Optional)
This package implements Laravel 5.5's auto-discovery feature. After you install it the package provider and facade are added automatically.
If you would like to declare the provider and/or alias explicitly, then add the service provider to your `config/app.php`:
```php
'providers' => [
//
AustinHeap\Database\InfluxDb\InfluxDbServiceProvider::class,
];
```
And then add the alias to your `config/app.php`:
```php
'aliases' => [
//
'InfluxDb' => AustinHeap\Database\InfluxDb\InfluxDbFacade::class,
];
```
### Step 3: Configure the package
Publish the package config file:
```bash
$ php artisan vendor:publish --provider="AustinHeap\Database\InfluxDb\InfluxDbServiceProvider"
```
You may now place your defaults in `config/influxdb.php`.
## Full .env Example
To override values in `config/influxdb.php`, simply add the following to your .env file:
```bash
INFLUXDB_PROTOCOL=https
INFLUXDB_USER=my-influxdb-user
INFLUXDB_PASS=my-influxdb-pass
INFLUXDB_HOST=my-influxdb.server
```
## References
- [influxdata/influxdb-php](https://github.com/influxdata/influxdb-php)
## Credits
This is a fork of [pdffiller/laravel-influx-provider](https://github.com/pdffiller/laravel-influx-provider).
- [pdffiller/laravel-influx-provider Contributors](https://github.com/pdffiller/laravel-influx-provider/graphs/contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.