cahkampung / landa-migrasi
MySQL 数据库迁移
1.0
2017-09-11 04:03 UTC
Requires
- php: >=5.4
This package is auto-updated.
Last update: 2024-09-07 00:07:14 UTC
README
简单的 PHP MySQL 迁移
安装
使用 Composer 安装
在 composer.json 中添加 cahkampung/landa-db
到 require 部分
"require": { "cahkampung/landa-db": "^1.0" },
或者在终端运行
composer require cahkampung/landa-migrasi
运行 composer install
使用示例
添加 landa-migrasi 后,创建名为 index.php 的 PHP 文件
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();
运行 index.php