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

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

eddturtle/phinx
===============

Phinx makes it ridiculously easy to manage the database migrations for your PHP app.

v3.0(7mo ago)279.3k↓36.9%1MITPHPPHP &gt;=8.0

Since Oct 20Pushed 7mo agoCompare

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

READMEChangelogDependencies (6)Versions (94)Used By (0)

[Phinx](https://phinx.org): Simple PHP Database Migrations
==========================================================

[](#phinx-simple-php-database-migrations)

[![Build Status](https://camo.githubusercontent.com/ca2d819c2715949dcb9c63ce295a9063154d907043cb8d6a284ee6c71b8f85a3/68747470733a2f2f7472617669732d63692e6f72672f63616b657068702f7068696e782e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/cakephp/phinx)[![Build status](https://camo.githubusercontent.com/7a585b902244aa1c13dd7dbbe2745a762b131de4ba86411d253c86db2371b863/68747470733a2f2f63692e6170707665796f722e636f6d2f6170692f70726f6a656374732f7374617475732f39766167343839326866713665666672)](https://ci.appveyor.com/project/robmorgan/phinx)[![Code Coverage](https://camo.githubusercontent.com/a385e08c9b1434eb9816c5be7b967c0833ef354590c59093bf6a53cdc270dfed/68747470733a2f2f636f6465636f762e696f2f67682f63616b657068702f7068696e782f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/cakephp/phinx)[![Latest Stable Version](https://camo.githubusercontent.com/73f4aff2e69752e905bc41be99f31aa70460e1f7603fd16bccc4b03dc757a630/68747470733a2f2f706f7365722e707567782e6f72672f726f626d6f7267616e2f7068696e782f76657273696f6e2e706e67)](https://packagist.org/packages/robmorgan/phinx)[![Total Downloads](https://camo.githubusercontent.com/0e4008132345ceefe1e76d10d1db405b18cd55882f11013c48e48234c59c7cbd/68747470733a2f2f706f7365722e707567782e6f72672f726f626d6f7267616e2f7068696e782f642f746f74616c2e706e67)](https://packagist.org/packages/robmorgan/phinx)[![Join the chat at https://gitter.im/phinx-php/Lobby](https://camo.githubusercontent.com/07c969608ba3a2d0f2d6a6aa1f35443d849d0f89a8fda391f4890e084243b195/68747470733a2f2f6261646765732e6769747465722e696d2f7068696e782d7068702f4c6f6262792e737667)](https://gitter.im/phinx-php/Lobby)

Intro
-----

[](#intro)

Phinx makes it ridiculously easy to manage the database migrations for your PHP app. In less than 5 minutes, you can install Phinx and create your first database migration. Phinx is just about migrations without all the bloat of a database ORM system or framework.

**Check out  ([EN](https://book.cakephp.org/3.0/en/phinx.html), [ZH](https://tsy12321.gitbooks.io/phinx-doc/)) for the comprehensive documentation.**

[![phinxterm](https://cloud.githubusercontent.com/assets/178939/3887559/e6b5e524-21f2-11e4-8256-0ba6040725fc.gif)](https://cloud.githubusercontent.com/assets/178939/3887559/e6b5e524-21f2-11e4-8256-0ba6040725fc.gif)

### Features

[](#features)

- Write database migrations using database agnostic PHP code.
- Migrate up and down.
- Migrate on deployment.
- Seed data after database creation.
- Get going in less than 5 minutes.
- Stop worrying about the state of your database.
- Take advantage of SCM features such as branching.
- Integrate with any app.

### Supported Adapters

[](#supported-adapters)

Phinx natively supports the following database adapters:

- MySQL
- PostgreSQL
- SQLite
- Microsoft SQL Server

Install &amp; Run
-----------------

[](#install--run)

### Composer

[](#composer)

The fastest way to install Phinx is to add it to your project using Composer ().

1. Install Composer:

    ```
    curl -sS https://getcomposer.org/installer | php

    ```
2. Require Phinx as a dependency using Composer:

    ```
    php composer.phar require robmorgan/phinx

    ```
3. Install Phinx:

    ```
    php composer.phar install

    ```
4. Execute Phinx:

    ```
    php vendor/bin/phinx

    ```

### As a Phar

[](#as-a-phar)

You can also use the Box application to build Phinx as a Phar archive ().

1. Clone Phinx from GitHub

    ```
    git clone https://github.com/cakephp/phinx.git
    cd phinx

    ```
2. Install Composer

    ```
    curl -s https://getcomposer.org/installer | php

    ```
3. Install the Phinx dependencies

    ```
    php composer.phar install

    ```
4. Install Box:

    ```
    curl -LSs https://box-project.github.io/box2/installer.php | php

    ```
5. Create a Phar archive

    ```
    php box.phar build

    ```

Documentation
-------------

[](#documentation)

Check out  for the comprehensive documentation.

Other translations include:

- [Chinese](https://tsy12321.gitbooks.io/phinx-doc/) (Maintained by [@tsy12321](https://github.com/tsy12321/phinx-doc))

Contributing
------------

[](#contributing)

Please read the [CONTRIBUTING](CONTRIBUTING.md) document.

News &amp; Updates
------------------

[](#news--updates)

Follow [@CakePHP](https://twitter.com/cakephp) on Twitter to stay up to date.

Misc
----

[](#misc)

### Version History

[](#version-history)

Please read the [CHANGELOG](CHANGELOG.md) document.

### License

[](#license)

(The MIT license)

Copyright (c) 2017 Rob Morgan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance63

Regular maintenance activity

Popularity33

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 59.1% 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 ~53 days

Recently: every ~59 days

Total

90

Last Release

224d ago

Major Versions

v0.9.6 → v1.0.02022-09-16

v1.1.1 → v2.02025-08-12

v2.1 → v3.02025-10-07

PHP version history (5 changes)v0.1.2PHP &gt;=5.3.2

v0.5.1PHP &gt;=5.4

0.10.0PHP &gt;=5.6

0.12.0PHP &gt;=7.2

v3.0PHP &gt;=8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/902607?v=4)[Edd Turtle](/maintainers/eddturtle)[@eddturtle](https://github.com/eddturtle)

---

Top Contributors

[![robmorgan](https://avatars.githubusercontent.com/u/178939?v=4)](https://github.com/robmorgan "robmorgan (796 commits)")[![shadowhand](https://avatars.githubusercontent.com/u/38203?v=4)](https://github.com/shadowhand "shadowhand (171 commits)")[![rquadling](https://avatars.githubusercontent.com/u/12801?v=4)](https://github.com/rquadling "rquadling (103 commits)")[![cyrusboadway](https://avatars.githubusercontent.com/u/1457501?v=4)](https://github.com/cyrusboadway "cyrusboadway (26 commits)")[![ADmad](https://avatars.githubusercontent.com/u/142658?v=4)](https://github.com/ADmad "ADmad (25 commits)")[![jbourdin](https://avatars.githubusercontent.com/u/1675069?v=4)](https://github.com/jbourdin "jbourdin (19 commits)")[![ondrejmirtes](https://avatars.githubusercontent.com/u/104888?v=4)](https://github.com/ondrejmirtes "ondrejmirtes (18 commits)")[![archer308](https://avatars.githubusercontent.com/u/1085165?v=4)](https://github.com/archer308 "archer308 (16 commits)")[![trilopin](https://avatars.githubusercontent.com/u/4096774?v=4)](https://github.com/trilopin "trilopin (15 commits)")[![dereuromark](https://avatars.githubusercontent.com/u/39854?v=4)](https://github.com/dereuromark "dereuromark (12 commits)")[![mackstar](https://avatars.githubusercontent.com/u/197328?v=4)](https://github.com/mackstar "mackstar (12 commits)")[![czogori](https://avatars.githubusercontent.com/u/892292?v=4)](https://github.com/czogori "czogori (11 commits)")[![zuker](https://avatars.githubusercontent.com/u/476388?v=4)](https://github.com/zuker "zuker (10 commits)")[![bartekrylko](https://avatars.githubusercontent.com/u/7151921?v=4)](https://github.com/bartekrylko "bartekrylko (10 commits)")[![eddturtle](https://avatars.githubusercontent.com/u/902607?v=4)](https://github.com/eddturtle "eddturtle (10 commits)")[![JayPHP](https://avatars.githubusercontent.com/u/18351805?v=4)](https://github.com/JayPHP "JayPHP (9 commits)")[![f3ath](https://avatars.githubusercontent.com/u/831399?v=4)](https://github.com/f3ath "f3ath (8 commits)")[![joshribakoff](https://avatars.githubusercontent.com/u/4021306?v=4)](https://github.com/joshribakoff "joshribakoff (7 commits)")[![lorenzo](https://avatars.githubusercontent.com/u/37621?v=4)](https://github.com/lorenzo "lorenzo (7 commits)")[![gmauricio](https://avatars.githubusercontent.com/u/1579836?v=4)](https://github.com/gmauricio "gmauricio (7 commits)")

---

Tags

databasemigrationsdbdatabase migrationsphinx

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[robmorgan/phinx

Phinx makes it ridiculously easy to manage the database migrations for your PHP app.

4.5k46.2M405](/packages/robmorgan-phinx)[masom/lhm

Large Hadron Migrator for phinx

309.3k](/packages/masom-lhm)[perplorm/perpl

Perpl is an improved and still maintained fork of Propel2, an open-source Object-Relational Mapping (ORM) for PHP.

203.7k](/packages/perplorm-perpl)

PHPackages © 2026

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