1. Go to this page and download the library: Download ganeshkandu/kdbv 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/ */
ganeshkandu / kdbv example snippets
// Using kdbv namespace
namespace kanduganesh;
// just use this code to OST' => '<mysql_host>',
'DATABASE' => '<mysql_database>',
'USER' => '<database_user>',
'PASS' => '<database_password>',
'PORT' => '<mysql_port>',
'KDBV' => '<kdbv_database_name>', //name of kdbv database
'PREFIX' => '<table prefix>', //table prefix
));
$sqls_queries = $obj->query();
foreach($sqls_queries as $query){
echo $query."\n";
}
/*
upgrade mysql database
notes :- during calling upgrade function your kdbv database should be deployed with your application
Upgrade your old mysql database to your latest mysql database structure
*/
$obj->upgrade();