PHP code example of sorokinmedia / yii2-generators

1. Go to this page and download the library: Download sorokinmedia/yii2-generators 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/ */

    

sorokinmedia / yii2-generators example snippets


$config['modules']['gii'] = [
    'class' => 'yii\gii\Module',
    'generators' => [
        'crud' => [
            'class' => 'ma3obblu\gii\generators\crud\Generator',
        ],
        'entity' => [
            'class' => 'ma3obblu\gii\generators\entity\Generator',
        ],
        'form' => [
            'class' => 'ma3obblu\gii\generators\form\Generator',
        ],
        'handler' => [
            'class' => 'ma3obblu\gii\generators\handler\Generator',
        ],
        'fixture_class' => [
            'class' => 'ma3obblu\gii\generators\fixture_class\Generator',
        ],
        'fixture_data' => [
            'class' => 'ma3obblu\gii\generators\fixture_data\Generator',
        ]
    ],
];

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