1. Go to this page and download the library: Download insolita/yii2-fixturegii library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
insolita / yii2-fixturegii example snippets
$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
]
],
]
//...
];
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.