Coder Social home page Coder Social logo

austinheap / laravel-database-influxdb Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 6.0 583 KB

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

Home Page: https://packagist.org/packages/austinheap/laravel-database-influxdb

PHP 100.00%
laravel laravel5 laravel55 laravel-5-package database databases influx influxdb timeseries timeseries-data timeseries-database composer composer-package php php7 php70 php71 php72

laravel-database-influxdb's Introduction

Laravel 5.5+ InfluxDB Database Package

Current Release Total Downloads Build Status Dependency Status Scrutinizer CI StyleCI Maintainability Test Coverage SensioLabs

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

There is documentation for laravel-database-influxdb online, the source of which is in the docs/ directory. The most logical place to start are the docs for the InfluxDbServiceProvider class.

Installation

Step 1: Composer

Via Composer command line:

$ composer require austinheap/laravel-database-influxdb

Or add the package to your composer.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:

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

And then add the alias to your config/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 in config/influxdb.php.

Full .env Example

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

INFLUXDB_PROTOCOL=https
INFLUXDB_USER=my-influxdb-user
INFLUXDB_PASS=my-influxdb-pass
INFLUXDB_HOST=my-influxdb.server

References

Credits

This is a fork of pdffiller/laravel-influx-provider.

License

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.