2017 © Pedro Peláez
 

symfony-bundle alice-generator-bundle

Symfony bundle for generating Alice fixtures from Doctrine entities

image

trappar/alice-generator-bundle

Symfony bundle for generating Alice fixtures from Doctrine entities

  • Tuesday, April 10, 2018
  • by trappar
  • Repository
  • 3 Watchers
  • 34 Stars
  • 13,711 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 7 Forks
  • 0 Open issues
  • 7 Versions
  • 17 % Grown

The README.md

AliceGeneratorBundle Build Status

This bundle integrates the AliceGenerator library into Symfony., (*1)

Introduction

TrapparAliceGeneratorBundle allows you to generate Alice Fixtures from your existing data., (*2)

You can learn more in the documentation for the standalone library., (*3)

Table of Contents

Installation

composer require trappar/alice-generator-bundle

Then, enable the bundle by updating your app/AppKernel.php file to enable the bundle:, (*4)

<?php
// in AppKernel::registerBundles()

if (in_array($this->getEnvironment(), ['dev', 'test'])) {
    // ...
    $bundles[] = new Trappar\AliceGeneratorBundle\TrapparAliceGeneratorBundle();
    // ...
}

Configuration

TrapparAliceGeneratorBundle requires no initial configuration to get you started., (*5)

For all available configuration options, please see the configuration reference., (*6)

Usage

The main method for using this bundle is the included command line application. Use this by running:, (*7)

console generate:fixtures

And simply follow along with the prompts., (*8)

You can also request the FixtureGenerator as a service from the container:, (*9)

$fixtureGenerator = $container->get('trappar_alice_generator.fixture_generator');
$yaml = $fixtureGenerator->generateYaml($entities);

Learn more in the documentation for the dedicated library., (*10)

Resources

Credits

This bundle was developed by Jeff Way with quite a lot of inspiration from:, (*11)

Other contributors., (*12)

License

license, (*13)

The Versions