PHP code example of doyzheng / yii2-generator

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

    

doyzheng / yii2-generator example snippets


Migration 类使用方法 生成迁移数据库文件 
    $migration =  new Migration();
    // 生成user表migrate文件
    $migration->generator('user');
    // 批量生成, 参数为空时生成全部
    $migration->batchGenerator();