PHP code example of shaqman / yii2-web-migration

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

    

shaqman / yii2-web-migration example snippets


'modules' => [
    'web-migration' => [
        // the module class
        'class' => 'shaqman\web\migration\Module',
    ],
    // your other modules
]

http://localhost/index.php?r=web-migration/default&action=up

http://localhost/index.php?r=web-migration/default&action=down