PHP code example of darkfriend / yii2-data-migrate

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

    

darkfriend / yii2-data-migrate example snippets


return [
    'bootstrap' => ['data'],
    'modules' => [
        'data' => [
            'class' => 'darkfriend\yii2migrate\ConsoleModule',
        ],
    ],
];

// console.php
'modules' => [
    'data' => [
        'class' => 'darkfriend\yii2migrate\ConsoleModule'
    ]
]

php composer.phar 
bash
$ php yii data/migrate/up
bash
$ php yii data/migrate/create <name>
bash
$ php yii data/migrate/create create_migrate_name
bash
$ php yii data/migrate