PHP code example of horat1us / yii2-migration-bootstrap

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

    

horat1us / yii2-migration-bootstrap example snippets




namespace Package;

use Horat1us\Yii;

class Bootstrap extends Yii\Migration\Bootstrap
{
    public $namespaces = __NAMESPACE__ . "\\Migrations";
    
    public $aliases = ['Package' => '@vendor/developer/package/src'];
}



// config.php

use Package;

return [
    'bootstrap' => [
        'class' => Package\Bootstrap::class,    
    ],
    // ... another application config
];