PHPackages                             fastd/migration - 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. fastd/migration

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

fastd/migration
===============

v0.1.2(6y ago)413.6k21PHPPHP &gt;=5.6CI failing

Since Apr 29Pushed 6y ago2 watchersCompare

[ Source](https://github.com/fastdlabs/migration)[ Packagist](https://packagist.org/packages/fastd/migration)[ RSS](/packages/fastd-migration/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (4)Versions (12)Used By (1)

MySQL Migration
===============

[](#mysql-migration)

轻量，简单又好用的数据库迁移工具。支持创建、修改、数据集填充等基础功能。

### 要求

[](#要求)

- PHP &gt;= 5.6

### 使用

[](#使用)

[![usage](docs/2017-04-30%2014.20.26.gif)](docs/2017-04-30%2014.20.26.gif)

##### 导出表结构(dump)

[](#导出表结构dump)

从数据库已有表中迁移到 PHP 文件

```
php migrate dump [table name] [-p|--path]

```

##### 执行迁移(run)

[](#执行迁移run)

将PHP文件迁移到 MySQL 数据表

```
php migrate run [-p|--path]

```

##### 清除缓存(cache-clear)

[](#清除缓存cache-clear)

```
php migrate cache-clear

```

##### 创建结构文件(create)

[](#创建结构文件create)

```
php migrate create [table]

```

##### 查看表结构(info)

[](#查看表结构info)

```
php migrate info [table]

```

### Support

[](#support)

如果你在使用中遇到问题，请联系: . 微博: [编码侠](http://weibo.com/ecbboyjan)

License MIT
-----------

[](#license-mit)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~97 days

Recently: every ~168 days

Total

10

Last Release

2426d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/94c2bc821caf23977e1c3deea85e3cbc9a73a632e1afaf778638f7fe9da1c42b?d=identicon)[JanHuang](/maintainers/JanHuang)

---

Top Contributors

[![JanHuang](https://avatars.githubusercontent.com/u/7090871?v=4)](https://github.com/JanHuang "JanHuang (51 commits)")

---

Tags

migratemysqlphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fastd-migration/health.svg)

```
[![Health](https://phpackages.com/badges/fastd-migration/health.svg)](https://phpackages.com/packages/fastd-migration)
```

###  Alternatives

[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M191](/packages/spatie-laravel-backup)[ssch/typo3-rector

Instant fixes for your TYPO3 PHP code by using Rector.

2592.8M263](/packages/ssch-typo3-rector)[guikingone/scheduler-bundle

A Symfony bundle that allows to schedule and create repetitive tasks

114217.4k](/packages/guikingone-scheduler-bundle)[worksome/foggy

Foggy is a tool for making database dumps with some data removed/changed.

26571.7k1](/packages/worksome-foggy)[psx/sql

Generate type-safe PHP classes from your database

1773.4k4](/packages/psx-sql)[bartlett/php-compatinfo-db

Reference Database of all functions, constants, classes, interfaces on PHP standard distribution and about 110 extensions

1183.0k1](/packages/bartlett-php-compatinfo-db)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
