PHP code example of beansir / newx-migration

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

    

beansir / newx-migration example snippets


#!/usr/bin/env php

defined('PROJECT_PATH') or define('PROJECT_PATH', __DIR__);
 


return [
    // 初始化以default数据库配置执行,初始化前请先配置此项
    'default' => [
        'host' => '127.0.0.1',
        'user' => 'root',
        'password' => 'root',
        'db' => 'chat',
        'type' => 'mysqli'
    ]
];