Download the PHP package javer/influxdb-odm-bundle without Composer
On this page you can find all versions of the php package javer/influxdb-odm-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package influxdb-odm-bundle
JaverInfluxDBBundle
This bundle integrates the InfluxDB Object Document Mapper (ODM) library into Symfony so that you can persist and retrieve objects to and from InfluxDB.
Compatibility
The current version of this bundle has the following requirements:
- InfluxDB 1.x
- PHP 8.1+
- Symfony 5.4+
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Applications that use Symfony Flex
Open a command console, enter your project directory and execute:
Applications that don't use Symfony Flex
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php
file of your project:
Configuration
To be able to use annotations, you will have to install an extra package called doctrine/annotations
.
Mapping Configuration
Explicit definition of all the mapped measurements is the only necessary configuration for the ODM. The following configuration options exist for a mapping:
mapping_dir
- Path to the measurement files
To avoid having to configure lots of information for your mappings you should put all your measurement
in a directory Measurement/
inside your project. For example src/Measurement/
.
Custom Types
Custom types
can come in handy when you're missing a specific mapping type or when you want to replace
the existing implementation of a mapping type for your measurements.
Usage
Refer to the influxdb-odm library documentation about declaring, creating, updating and removing measurements.
MeasurementManager
Inject Javer\InfluxDB\ODM\MeasurementManager
to any service which needs ability to create,
update or remove measurements:
Service Repositories
This bundle adds another way of obtaining a repository instance: use the repository as a service and inject it as a dependency into other services.
The ServiceMeasurementRepository
class your custom repository is extending allows you to
leverage Symfony's autowiring
and autoconfiguration
. To register all of your
repositories as services you can use the following service configuration:
Symfony Profiler Data Collector
This bundle adds a new icon to the Symfony Profiler Toolbar and a new Symfony Profiler Page to enable you to monitor all queries and writes to InfluxDB. It is enabled by default only in development environment.
All versions of influxdb-odm-bundle with dependencies
javer/influxdb-odm Version ^1.3
symfony/config Version ^5.4 || ^6.0 || ^7.0
symfony/dependency-injection Version ^5.4 || ^6.0 || ^7.0
symfony/http-foundation Version ^5.4 || ^6.0 || ^7.0
symfony/http-kernel Version ^5.4 || ^6.0 || ^7.0
symfony/service-contracts Version ^1.0 || ^2.0 || ^3.0
symfony/yaml Version ^5.4 || ^6.0 || ^7.0