PHPackages                             thinkphp/thinkphp-plus - 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. thinkphp/thinkphp-plus

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

thinkphp/thinkphp-plus
======================

thinkphp 5.0.0 with phinx database migration

1.0.0(10y ago)10281Apache2PHPPHP &gt;=5.4.0

Since Mar 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/geXingW/thinkPHP5-with-migration)[ Packagist](https://packagist.org/packages/thinkphp/thinkphp-plus)[ RSS](/packages/thinkphp-thinkphp-plus/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

thinkPHP 5.0.0 with migration
=============================

[](#thinkphp-500-with-migration)

添加 [thinkPHP 5.0](https://github.com/top-think/think)，支持 migration 迁移数据库

\###感谢 [Phinx](https://phinx.org/) 提供的开源支持

migration
---------

[](#migration)

一种数据库的版本控制，让团队在修改数据库结构的同时，保持彼此的进度一致。帮你更简单的管理数据库。

Phinx
-----

[](#phinx)

PHP Database Migrations For Everyone

thinkPHP 5 with migration
-------------------------

[](#thinkphp-5-with-migration)

基于原生 [thinkPHP 5.0](https://github.com/top-think/think) 命令行工具，为提高 B 格已将php console 改为 php think (^-^)，融入了 [Phinx](https://phinx.org/) 的数据库迁移

常用命令
----

[](#常用命令)

> ## 查看可用命令
>
> [](#查看可用命令)
>
> - php think list
>
> ## 初始化migration配置
>
> [](#初始化migration配置)
>
> - php think migrate:init
>
> ## 创建数据库迁移文件
>
> [](#创建数据库迁移文件)
>
> - php think make:migration ClassName
>
> ## 执行数据库迁移文件
>
> [](#执行数据库迁移文件)
>
> - php think migrate
>
> ## 返回到最近一次的 migrate 操作
>
> [](#返回到最近一次的-migrate-操作)
>
> - php think migrate:rollback
>
> ## 返回到指定版本的 migrate 操作
>
> [](#返回到指定版本的-migrate-操作)
>
> - php think migrate:rollback -t timestamp
>
> ## 创建数据填充文件
>
> [](#创建数据填充文件)
>
> - php think make:seeder ClassName
>
> ## 执行数据填充
>
> [](#执行数据填充)
>
> - php think seed:run
>
> ## 查看状态
>
> [](#查看状态)
>
> - php think migrate:status

配置
--

[](#配置)

> 执行 php think migrate:init，生成的 phinx.yml 中数据库配置是 APP\_PATH/database.php 中的数据库配置
>
> 如果有多个数据库, 可以自己修改 phinx.yml, Migration调用的是phinx.yml中的数据库配置
>
> 默认phinx.yml、migration和seeder的模板文件在 console/commands/scaffolds/templates 中， migration和seeder的模板位置可以在phinx.yml中配置

获取更多支持
------

[](#获取更多支持)

查看 [Phinx文档](http://docs.phinx.org/en/latest) 获取更多帮助

问题反馈
----

[](#问题反馈)

Email: [wolfs\_9@hotmail.com](mailto:wolfs_9@hotmail.com)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

3754d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ce1fa8e3766aa06985da7670a29d24cdba522633164a40fdb6748e152a091eb?d=identicon)[\_\_geXing](/maintainers/__geXing)

---

Top Contributors

[![geXingW](https://avatars.githubusercontent.com/u/17963568?v=4)](https://github.com/geXingW "geXingW (5 commits)")[![TakeSelf](https://avatars.githubusercontent.com/u/13359295?v=4)](https://github.com/TakeSelf "TakeSelf (5 commits)")

---

Tags

migrationdatabasemysqlthinkphp

### Embed Badge

![Health badge](/badges/thinkphp-thinkphp-plus/health.svg)

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

###  Alternatives

[odan/phinx-migrations-generator

Migration generator for Phinx

233913.8k25](/packages/odan-phinx-migrations-generator)[camcima/php-mysql-diff

14742.7k](/packages/camcima-php-mysql-diff)[awssat/laravel-sync-migration

Laravel tool helps to sync migrations without refreshing the database

10923.3k](/packages/awssat-laravel-sync-migration)[smrtr/mysql-version-control

A crude version control system for mysql written in php

221.4k](/packages/smrtr-mysql-version-control)

PHPackages © 2026

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