PHP code example of gaucho / mig

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

    

gaucho / mig example snippets


$table_dir=__DIR__.'/table';

$table_dir=[
__DIR__.'/dir1',
__DIR__.'/dir2'
];

use gaucho\mig;

$pdo=/* instância do pdo */;
$db_type='mysql';//sqlite
$mig=new mig($pdo,$table_dir,$db_type);
$mig->mig();