Skip to content

zoelabz/db-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages