Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

A package for accessing InfluxDB from Laravel 5.5+, based on configuration settings.

NotificationsYou must be signed in to change notification settings

austinheap/laravel-database-influxdb

Repository files navigation

Current ReleaseTotal DownloadsBuild StatusDependency StatusScrutinizer CIStyleCIMaintainabilityTest CoverageSensioLabs

A package for accessing InfluxDB from Laravel 5.5+, based on configuration settings.

There isdocumentation forlaravel-database-influxdb online,the source of which is in thedocs/directory. The most logical place to start are thedocs for theInfluxDbServiceProvider class.

Installation

Step 1: Composer

Via Composer command line:

$ composer require austinheap/laravel-database-influxdb

Or add the package to yourcomposer.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 yourconfig/app.php:

'providers' => [//AustinHeap\Database\InfluxDb\InfluxDbServiceProvider::class,];

And then add the alias to yourconfig/app.php:

'aliases' => [//'InfluxDb' =>AustinHeap\Database\InfluxDb\InfluxDbFacade::class,];

Step 3: Configure the package

Publish the package config file:

$ php artisan vendor:publish --provider="AustinHeap\Database\InfluxDb\InfluxDbServiceProvider"

You may now place your defaults inconfig/influxdb.php.

Full .env Example

To override values inconfig/influxdb.php, simply add the following to your .env file:

INFLUXDB_PROTOCOL=httpsINFLUXDB_USER=my-influxdb-userINFLUXDB_PASS=my-influxdb-passINFLUXDB_HOST=my-influxdb.server

References

Credits

This is a fork ofpdffiller/laravel-influx-provider.

License

The MIT License (MIT). Please seeLicense File for more information.


[8]ページ先頭

©2009-2025 Movatter.jp