PHPackages                             malukenho/migratedb - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. malukenho/migratedb

ActiveLibrary[Database &amp; ORM](/categories/database)

malukenho/migratedb
===================

The simple tools to migrate data between relational DB write in PHP

v0.1.0(12y ago)30507PHPPHP &gt;=5.3.0

Since Dec 30Pushed 12y ago6 watchersCompare

[ Source](https://github.com/malukenho/MigrateDB)[ Packagist](https://packagist.org/packages/malukenho/migratedb)[ RSS](/packages/malukenho-migratedb/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/ce7ccc260da7b25b205777cf75023208650b6c48cbe6f18d90952116a7e80b15/68747470733a2f2f7472617669732d63692e6f72672f6d616c756b656e686f2f4d69677261746544422e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/malukenho/MigrateDB) [![Latest Stable Version](https://camo.githubusercontent.com/b186f3fd5c83453ac40a2013050ff852fb7a0ca814eb854c2adb1c22101fcc5e/68747470733a2f2f706f7365722e707567782e6f72672f6d616c756b656e686f2f6d69677261746564622f762f737461626c652e706e67)](https://packagist.org/packages/malukenho/migratedb) [![Total Downloads](https://camo.githubusercontent.com/67f7568e8d705e477bdba0721b2f3d5d25a60743db13ea57bc137df038cef865/68747470733a2f2f706f7365722e707567782e6f72672f6d616c756b656e686f2f6d69677261746564622f646f776e6c6f6164732e706e67)](https://packagist.org/packages/malukenho/migratedb) [![Latest Unstable Version](https://camo.githubusercontent.com/8b7ea3b6ada153b6d8e2d0fb1ca3838e19fd9ace5595af1f3b77f2fae2e274a6/68747470733a2f2f706f7365722e707567782e6f72672f6d616c756b656e686f2f6d69677261746564622f762f756e737461626c652e706e67)](https://packagist.org/packages/malukenho/migratedb) [![License](https://camo.githubusercontent.com/becdb1a1ebea9b9acf1b604196aca3164b6582a9814cedba717132e2c8696453/68747470733a2f2f706f7365722e707567782e6f72672f6d616c756b656e686f2f6d69677261746564622f6c6963656e73652e706e67)](https://packagist.org/packages/malukenho/migratedb)

MigrateDB
=========

[](#migratedb)

**MigrateDB** is a simple tool to migrate data between databases.

#### Step 1

[](#step-1)

Installing the **MigrateDB** is very simple using composer :3

Create the follow script *composer.json*

```
{
    "require": {
        "malukenho/migratedb": "dev-master"
    }
}
```

Run **composer install** and all's okay!

Well, we have the follow table

```
mysql> SELECT * FROM user;
+------+------------+---------+
| id   | name       | passwd  |
+------+------------+---------+
|    1 | Kika Pimpo | 123@456 |
|    2 | RamStrYou  | 1!#@$%6 |
+------+------------+---------+
1 row in set (0.00 sec)
```

And would like to migrate this datas to another table.

```
mysql> SELECT * FROM member;
+-----------+-----------------+------------+
| user_id   | user_name       | user_pass  |
+-----------+-----------------+------------+
|           Nothing to see here            |
+-----------+-----------------+------------+
1 row in set (0.00 sec)
```

Let's go!

Create the class to get data of a table. You can use the annotation ***@from\_table*** to set it, and ***@complement*** to increase your query.

```
