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:
License
统计信息
- 总下载量: 169.51k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 45
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-06-09