PHP code example of alupuleasa / compare-db
1. Go to this page and download the library: Download alupuleasa/compare-db 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/ */
alupuleasa / compare-db example snippets
ompareDB\CompareDB as CompareDB;
$DB1 = new stdClass();
$DB1->host = "*******";
$DB1->dbname = "*******";
$DB1->user = "*******";
$DB1->passw = "*******";
$DB2 = new stdClass();
$DB2->host = "*******";
$DB2->dbname = "*******";
$DB2->user = "*******";
$DB2->passw = "*******";
$compareDb = new CompareDB($DB1,$DB2);
$compareDb->showDiferences();
//$compareDb->showStructures();