PHP code example of elisdn / yii2-gii-fixture-generator

1. Go to this page and download the library: Download elisdn/yii2-gii-fixture-generator 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/ */

    

elisdn / yii2-gii-fixture-generator example snippets


$config['modules']['gii'] = [
    'class' => 'yii\gii\Module',
    'generators' => [
        'fixture' => [
            'class' => 'elisdn\gii\fixture\Generator',
        ],
    ],
];

Yii::setAlias('@tests', dirname(__DIR__) . '/tests');