PHPackages                             itxq/think-phinx - 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. itxq/think-phinx

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

itxq/think-phinx
================

Think-Phinx 数据库迁移工具

v1.0.9(6y ago)71411[2 issues](https://github.com/itxq/think-phinx/issues)1Apache-2.0PHPPHP &gt;=7.1.0

Since Oct 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/itxq/think-phinx)[ Packagist](https://packagist.org/packages/itxq/think-phinx)[ RSS](/packages/itxq-think-phinx/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (2)Versions (11)Used By (1)

Think-Phinx 数据库迁移工具
===================

[](#think-phinx-数据库迁移工具)

[![PHP Version](https://camo.githubusercontent.com/a36ed93e60420b5782989c6c5834d9b2085aab7c1a99bc36751792706a2f0b83/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344372e312d3838393242462e737667)](http://www.php.net/)[![Latest Stable Version](https://camo.githubusercontent.com/aac6d4d863bc85afeffa7a628364e793e048700d4adb8dc009a3a1668a88727b/68747470733a2f2f706f7365722e707567782e6f72672f697478712f7468696e6b2d7068696e782f76657273696f6e)](https://packagist.org/packages/itxq/think-phinx)[![Total Downloads](https://camo.githubusercontent.com/240b2d4d8d3f2f92f1fc2c86e226805f8bfb146b153769913732ca311bef5a5a/68747470733a2f2f706f7365722e707567782e6f72672f697478712f7468696e6b2d7068696e782f646f776e6c6f616473)](https://packagist.org/packages/itxq/think-phinx)[![Latest Unstable Version](https://camo.githubusercontent.com/77eab61018d22316ffc1143773cd41b69e82ad5de1afd80ddb40083abf961e86/68747470733a2f2f706f7365722e707567782e6f72672f697478712f7468696e6b2d7068696e782f762f756e737461626c65)](//packagist.org/packages/itxq/think-phinx)[![License](https://camo.githubusercontent.com/f3557b65fd9fb4bec875d37082a91a7001ec510860438189641cde594bc98768/68747470733a2f2f706f7365722e707567782e6f72672f697478712f7468696e6b2d7068696e782f6c6963656e7365)](https://packagist.org/packages/itxq/think-phinx)[![composer.lock available](https://camo.githubusercontent.com/368380ad555002cbf1bdea8135028985d4d06e0f33ca7ba5996c83f33e15bc11/68747470733a2f2f706f7365722e707567782e6f72672f697478712f7468696e6b2d7068696e782f636f6d706f7365726c6f636b)](https://packagist.org/packages/itxq/think-phinx)

> 本扩展在 `top-think/think-migration` 扩展的基础进行了优化修改。`phinx` 采用composer引用；并且增加了一个新的功能用于迁移其他composer包自带的迁移文件。

> 迁移其他composer包中的迁移文件时，需要其他包在composer.json 指定路径, 格式如下

```
{
  "extra": {
    "itxq-phinx": "database"
  }
}
```

### 开源地址：

[](#开源地址)

[【GitHub:】https://github.com/itxq/think-phinx](https://github.com/itxq/think-phinx)

[【码云:】https://gitee.com/itxq/think-phinx](https://gitee.com/itxq/think-phinx)

### 扩展安装：

[](#扩展安装)

`composer require itxq/think-phinx`

### 命令说明

[](#命令说明)

- **migrate:create**
    Create a new migration
- **migrate:rollback**
    Rollback the last or to a specific migration
- **migrate:run**
    Migrate the database
- **seed:create**
    Create a new database seeder
- **seed:run**
    Run database seeders

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

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 ~4 days

Total

10

Last Release

2362d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/928b5ea53fa9cd97dfbdd2a8a5de5020a94722939884a749bda9421a19894c02?d=identicon)[IT小强xqitw.cn](/maintainers/IT%E5%B0%8F%E5%BC%BAxqitw.cn)

---

Top Contributors

[![itxq](https://avatars.githubusercontent.com/u/17096065?v=4)](https://github.com/itxq "itxq (23 commits)")

### Embed Badge

![Health badge](/badges/itxq-think-phinx/health.svg)

```
[![Health](https://phpackages.com/badges/itxq-think-phinx/health.svg)](https://phpackages.com/packages/itxq-think-phinx)
```

###  Alternatives

[odan/phinx-migrations-generator

Migration generator for Phinx

235847.8k23](/packages/odan-phinx-migrations-generator)[topthink/think-migration

96460.8k121](/packages/topthink-think-migration)[topthink/think-mongo

mongodb driver for thinkphp6.0

109139.8k6](/packages/topthink-think-mongo)[nhzex/think-phinx

Phinx integration for thinkphp

243.1k](/packages/nhzex-think-phinx)

PHPackages © 2026

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