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

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

ledc/phinx
==========

Webman plugin ledc/phinx

v8.0.0(1y ago)0261MITPHPPHP &gt;=8.3

Since Dec 30Pushed 1y ago1 watchersCompare

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

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

Migration数据库迁移工具 Phinx
======================

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

安装
--

[](#安装)

`composer require ledc/phinx`

Phinx 可以让开发者简洁的修改和维护数据库。 它避免了人为的手写 SQL 语句，它使用强大的 PHP API 去管理数据库迁移。开发者可以使用版本控制管理他们的数据库迁移。 Phinx 可以方便的进行不同数据库之间数据迁移。还可以追踪到哪些迁移脚本被执行，开发者可以不再担心数据库的状态从而更加关注如何编写出更好的系统。

官方中文文档地址
--------

[](#官方中文文档地址)

使用建议
----

[](#使用建议)

迁移文件一旦代码合并后不允许再次修改，出现问题必须新建修改或者删除操作文件进行处理。

命令
--

[](#命令)

```
php vendor/bin/phinx init
php vendor/bin/phinx create MyNewMigration
php vendor/bin/phinx migrate -e development
```

### 创建数据表操作文件命名规则

[](#创建数据表操作文件命名规则)

{time(auto create)}*create*{表名英文小写}

### 修改数据表操作文件命名规则

[](#修改数据表操作文件命名规则)

{time(auto create)}*modify*{表名英文小写+具体修改项英文小写} {time(auto create)}*update*{表名英文小写+具体修改项英文小写}

### 删除数据表操作文件命名规则

[](#删除数据表操作文件命名规则)

{time(auto create)}*delete*{表名英文小写+具体修改项英文小写}

### 填充数据文件命名规则

[](#填充数据文件命名规则)

{time(auto create)}*fill*{表名英文小写+具体修改项英文小写}

捐赠
--

[](#捐赠)

[![reward](reward.png)](reward.png)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance40

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

504d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4af14254189bc74029cc40f4206f8006872b0cd092c680201f204a85a490f143?d=identicon)[ledccn](/maintainers/ledccn)

---

Top Contributors

[![ledccn](https://avatars.githubusercontent.com/u/53997080?v=4)](https://github.com/ledccn "ledccn (2 commits)")

### Embed Badge

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

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

###  Alternatives

[forme/framework

An MVC framework for WordPress.

175.0k3](/packages/forme-framework)

PHPackages © 2026

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