Landa DB
Simple PHP Mysql Migration, (*1)
Installation
Install with Composer, (*2)
Add cahkampung/landa-db
to require in composer.json, (*3)
"require": { "cahkampung/landa-db": "^1.0" },
, (*4)
or run in terminal, (*5)
composer require cahkampung/landa-migrasi
, (*6)
Run composer install
, (*7)
Example To Use
After add landa-migrasi, create php file with name index.php :, (*8)
use Cahkampung\Migrasi;
require 'vendor/autoload.php';
$db_setting = [
"host" => "localhost",
"username" => "root",
"password" => "qwerty",
"database" => "landa_sampang_pengajuan",
"path" => "migrasi",
];
$migrasi = new Migrasi($db_setting);
$migrasi->migrasi();
Run index.php, (*9)