Download the PHP package yproximite/influxdb-bundle without Composer
On this page you can find all versions of the php package yproximite/influxdb-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yproximite/influxdb-bundle
More information about yproximite/influxdb-bundle
Files in yproximite/influxdb-bundle
Package influxdb-bundle
Short Description Bundle service integration of official influxdb/influxdb-php client
License MIT
Informations about the package influxdb-bundle
influxdb-bundle
Fork of Algatux/influxdb-bundle, seems not maintained
⚠ Can be deleted if Algatux/influxdb-bundle is updated ⚠
Bundle service integration of official influxdb/influxdb-php client
Installation
First of all, you need to require this library through composer:
Then, enable the bundle on the AppKernel
class:
Configuration
Here is the configuration reference:
If you have only one connection to configure, this can be simplified to this:
Services
You can directly access to the InfluxDB\Database
through UDP or HTTP with those services:
You can also retrieve them thanks to the registry:
To manipulate the database, please read the official documentation for reading and writing.
Sending data to influx db through events
Assuming this collection to send:
Dispatch the event instance according to the chosen writing protocol:
Or, if you prefer to defer the event:
If you want to write to another connection than the default, you must specify it:
Commands
Some commands are provided:
yproximite:influx:database:create
: To create the database.yproximite:influx:database:drop
: To drop the database.
To get more information, run:
Form types
This bundle provides several pre-defined form types. They are useful but optional.
If you want to use them, you have to require the symfony/form
package.
Description of each of them is on the class doc block. Here is a short usage example:
Custom event listeners
In order to make it more flexible, you can override or even completely disable the default event listener and implement your own.
It is useful i.e. if you want to add additional logging or error handling around the actual database calls.
Contributing
Feel free to contribute by opening a pull request, if you find a bug or to suggest a new feature. If you like docker, this repository is provided with a dev environment with some scripts to prepare and use it. All you need is docker and docker-compose installed on your system.
Note: All these scripts are meant to be used outside the containers.
All versions of influxdb-bundle with dependencies
influxdb/influxdb-php Version ^1.2
symfony/console Version ^5.4 || ^6.0
symfony/framework-bundle Version ^5.4 || ^6.0