trappar/alice-generator-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

trappar/alice-generator-bundle

最新稳定版本:v2.0.1

Composer 安装命令:

composer require trappar/alice-generator-bundle

包简介

Symfony bundle for generating Alice fixtures from Doctrine entities

README 文档

README

This bundle integrates the AliceGenerator library into Symfony.

Introduction

TrapparAliceGeneratorBundle allows you to generate Alice Fixtures from your existing data.

You can learn more in the documentation for the standalone library.

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:

<?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.

For all available configuration options, please see the configuration reference.

Usage

The main method for using this bundle is the included command line application. Use this by running:

console generate:fixtures

And simply follow along with the prompts.

You can also request the FixtureGenerator as a service from the container:

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

Learn more in the documentation for the dedicated library.

Resources

Credits

This bundle was developed by Jeff Way with quite a lot of inspiration from:

Other contributors.

License

license

统计信息

  • 总下载量: 169.51k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 45
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 45
  • Watchers: 1
  • Forks: 12
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-06-09