PHP code example of zyimm / sync-data-struct

1. Go to this page and download the library: Download zyimm/sync-data-struct 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/ */

    

zyimm / sync-data-struct example snippets


//set error
error_reporting(E_ALL);
ini_set('display_errors', true);
//autoload
ysql',
        'username' => 'root',
        'passwd'   => '123456',
        'dbname'   => 'local'
    ],
    //开发数据库或目标同步数据
    'dev'   => [
        'host'     => 'mysql',
        'username' => 'root',
        'passwd'   => '123456',
        'dbname'   => 'dev'
    ]
];
$handle = new \Zyimm\dbStructSync\Sync($config);
echo $handle->toHtml();