2017 © Pedro Peláez
 

yii2-extension yii2-fixturegii

gii fixture helper - generate fixture classes; faker templates; fixture data files from table

image

insolita/yii2-fixturegii

gii fixture helper - generate fixture classes; faker templates; fixture data files from table

  • Friday, November 3, 2017
  • by Insolita
  • Repository
  • 4 Watchers
  • 10 Stars
  • 1,464 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 5 Versions
  • 8 % Grown

The README.md

Yii2-fixture/template-generator

Status Latest Stable Version Total Downloads License, (*1)

Gii fixture helper - generate fixture classes; faker templates; fixture data files from table support bulk template and data-file generations, (*2)

Installation

composer require --dev --prefer-dist insolita/yii2-fixturegii "~3.0.0"

or add, (*3)

"insolita/yii2-fixturegii": "~3.0.0"

to the require-dev section of your composer.json file., (*4)

Usage

Register insolita\fixturegii\Bootstrap in bootstrap section of backend application, or add needed generators in section of gii module, (*5)

Go to gii and use new Generators, (*6)

Suggest:, (*7)

define '@test' or '@fixture' alias for quick path setup, (*8)

Customize

Set up in gii config sections, (*9)

  $config['modules']['gii'] = [
          'class' => 'yii\gii\Module',
          'generators' => [
              //...
              'fixtureClass'=>[
                  'class'=>\insolita\fixturegii\generators\ClassGenerator::class,
                  'templates'=>[
                           //add your custom
                  ]
              ],
              'fixtureData'=>[
                  'class'=>\insolita\fixturegii\generators\DataGenerator::class,
                  'tableResolverClass'=>'You can set own implementation',
                  'templates'=>[
                        //add your custom
                  ]
              ],
              'fixtureTemplate'=>[
              'class'=>\insolita\fixturegii\generators\TemplateGenerator::class,
                'tableResolverClass'=>'You can set own implementation',
                'columnResolverClass'=>'You can set own implementation',
                'templates'=>[
                        //add your custom
                ]
              ],
          ]
          //...
      ];

The Versions

03/11 2017

dev-master

9999999-dev

gii fixture helper - generate fixture classes; faker templates; fixture data files from table

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Insolita

extension yii2

03/11 2017

2.0.0

2.0.0.0

gii fixture helper - generate fixture classes; faker templates; fixture data files from table

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Insolita

extension yii2

29/06 2017

1.0.4

1.0.4.0

gii fixture helper - generate fixture classes; faker templates; fixture data files from table

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Insolita

extension yii2

27/05 2017

1.0

1.0.0.0

gii fixture helper - generate fixture classes; faker templates; fixture data files from table

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Insolita

extension yii2

21/06 2016

0.1

0.1.0.0

gii tool for generate fixture templates by table schema

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Insolita

extension yii2