PHPackages                             javer/influxdb-data-fixtures-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. javer/influxdb-data-fixtures-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

javer/influxdb-data-fixtures-bundle
===================================

Provides integration of InfluxDB ODM with Nelmio alice extension to persist the loaded fixtures

v1.2.0(2y ago)019.8kMITPHPPHP &gt;=8.1

Since Oct 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/javer/JaverInfluxDBDataFixturesBundle)[ Packagist](https://packagist.org/packages/javer/influxdb-data-fixtures-bundle)[ Docs](https://github.com/javer/JaverInfluxDBDataFixturesBundle)[ RSS](/packages/javer-influxdb-data-fixtures-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (12)Versions (5)Used By (0)

JaverInfluxDBDataFixturesBundle
===============================

[](#javerinfluxdbdatafixturesbundle)

This bundle integrates the [InfluxDB Data Fixtures library](https://github.com/javer/influxdb-data-fixtures)into Symfony so that you can use [Alice](https://github.com/nelmio/alice) to load your fixtures into InfluxDB.

[![Build Status](https://github.com/javer/JaverInfluxDBDataFixturesBundle/actions/workflows/test.yaml/badge.svg)](https://github.com/javer/JaverInfluxDBDataFixturesBundle/actions/workflows/test.yaml)

Installation
============

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require javer/influxdb-data-fixtures-bundle
```

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Download the Bundle

[](#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:

```
$ composer require javer/influxdb-data-fixtures-bundle
```

### Step 2: Enable the 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:

```
// config/bundles.php

return [
    // ...
    Javer\InfluxDB\DataFixturesBundle\JaverInfluxDBDataFixturesBundle::class => ['dev' => true, 'test' => true],
];
```

Usage
=====

[](#usage)

Refer to the [AliceDataFixtures](https://github.com/theofidry/AliceDataFixtures) documentation about creating of data fixtures for the Doctrine ODM.

After creating you can load fixtures using a `LoaderInterface`:

```
