Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 881 Bytes

README.md

File metadata and controls

43 lines (26 loc) · 881 Bytes

Database Synchronizer

Install With Composer

-> composer require zoelabz/db-sync

require_once 'vendor/autoload.php';

$localConfig = [
    'host'  => 'db host',

    'username'     => 'database username',
    'password' => 'database password',

    'db_name' => 'database name'

    'db_type' => 'your db type'
];

$remoteConfig = [
    'host'  => 'db host',
    
    'username'     => 'database username',
    'password' => 'database password',

    'db_name' => 'database name'

    'db_type' => 'your db type'
];

$db_sync = new \Zoelabz\DbSync\DbSync($localConfig, $remoteConfig);


$db_sync->syncTable('table_name'); //Synchronizing Table

$db_sync->syncTables('table_1_name', 'table_2_name', 'table_3_name'); //Synchronizing Tables

$db_sync->syncDatabase(); //Synchronizing Database

zoelabz/db-sync
[email protected]