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

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

pantono/phinx
=============

Phinx makes it ridiculously easy to manage the database migrations for your PHP app. Forked from main repository

0.16.12(3mo ago)04814MITPHP

Since Jan 24Pushed 3mo agoCompare

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

READMEChangelog (1)Dependencies (10)Versions (4)Used By (14)

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

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

[![CI](https://github.com/cakephp/phinx/actions/workflows/ci.yml/badge.svg?branch=0.x&event=push)](https://github.com/cakephp/phinx/actions/workflows/ci.yml)[![Code Coverage](https://camo.githubusercontent.com/a385e08c9b1434eb9816c5be7b967c0833ef354590c59093bf6a53cdc270dfed/68747470733a2f2f636f6465636f762e696f2f67682f63616b657068702f7068696e782f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/cakephp/phinx)[![Packagist Version](https://camo.githubusercontent.com/581c495d0420a937ca342b2e146fca0a1a1d9b71397da7ef2b969c837ae40727/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f626d6f7267616e2f7068696e78)](https://camo.githubusercontent.com/581c495d0420a937ca342b2e146fca0a1a1d9b71397da7ef2b969c837ae40727/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f626d6f7267616e2f7068696e78)[![Minimum PHP Version](https://camo.githubusercontent.com/183804d09fec16ca7b6209b007250b7d8db1b915042feb093a9f20e6e1f25359/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e312d3838393242462e737667)](https://php.net/)[![Packagist Downloads](https://camo.githubusercontent.com/e74479554bc181e1bf0cb4ec6714604f45cf90a6df30516694ac9e0d52e8acbd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f626d6f7267616e2f7068696e78)](https://camo.githubusercontent.com/e74479554bc181e1bf0cb4ec6714604f45cf90a6df30516694ac9e0d52e8acbd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f626d6f7267616e2f7068696e78)

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 [book.cakephp.org/phinx](https://book.cakephp.org/phinx) 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)

See [version and branch overview](https://github.com/cakephp/phinx/wiki#version-and-branch-overview) for branch and PHP compatibility.

### 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.

Limitations
-----------

[](#limitations)

### PostgreSQL

[](#postgresql)

- Not able to set a unique constraint on a table ([cakephp#1026](https://github.com/cakephp/phinx/issues/1026)).

Misc
----

[](#misc)

### Version History

[](#version-history)

Please read the [release notes](https://github.com/cakephp/phinx/releases).

### 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

35

—

LowBetter than 80% of packages

Maintenance80

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community28

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor3

3 contributors hold 50%+ of commits

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

Total

3

Last Release

103d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7de189dfd676c11045c9c03f83b95a1a2db0ca7c8619f6496b2533c199fc532a?d=identicon)[csburton](/maintainers/csburton)

---

Top Contributors

[![robmorgan](https://avatars.githubusercontent.com/u/178939?v=4)](https://github.com/robmorgan "robmorgan (796 commits)")[![MasterOdin](https://avatars.githubusercontent.com/u/1845314?v=4)](https://github.com/MasterOdin "MasterOdin (426 commits)")[![dereuromark](https://avatars.githubusercontent.com/u/39854?v=4)](https://github.com/dereuromark "dereuromark (389 commits)")[![shadowhand](https://avatars.githubusercontent.com/u/38203?v=4)](https://github.com/shadowhand "shadowhand (171 commits)")[![lorenzo](https://avatars.githubusercontent.com/u/37621?v=4)](https://github.com/lorenzo "lorenzo (170 commits)")[![rquadling](https://avatars.githubusercontent.com/u/12801?v=4)](https://github.com/rquadling "rquadling (127 commits)")[![stickler-ci](https://avatars.githubusercontent.com/u/16011037?v=4)](https://github.com/stickler-ci "stickler-ci (69 commits)")[![othercorey](https://avatars.githubusercontent.com/u/24221186?v=4)](https://github.com/othercorey "othercorey (41 commits)")[![ADmad](https://avatars.githubusercontent.com/u/142658?v=4)](https://github.com/ADmad "ADmad (34 commits)")[![markstory](https://avatars.githubusercontent.com/u/24086?v=4)](https://github.com/markstory "markstory (34 commits)")[![JKingweb](https://avatars.githubusercontent.com/u/89590?v=4)](https://github.com/JKingweb "JKingweb (31 commits)")[![cyrusboadway](https://avatars.githubusercontent.com/u/1457501?v=4)](https://github.com/cyrusboadway "cyrusboadway (26 commits)")[![SeinopSys](https://avatars.githubusercontent.com/u/3200580?v=4)](https://github.com/SeinopSys "SeinopSys (23 commits)")[![saeideng](https://avatars.githubusercontent.com/u/8215801?v=4)](https://github.com/saeideng "saeideng (21 commits)")[![martijngastkemper](https://avatars.githubusercontent.com/u/250662?v=4)](https://github.com/martijngastkemper "martijngastkemper (19 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)")[![twoixter](https://avatars.githubusercontent.com/u/88262?v=4)](https://github.com/twoixter "twoixter (16 commits)")[![trilopin](https://avatars.githubusercontent.com/u/4096774?v=4)](https://github.com/trilopin "trilopin (15 commits)")

---

Tags

databasemigrationsdbdatabase migrationsphinx

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[robmorgan/phinx

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

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

Large Hadron Migrator for phinx

309.3k](/packages/masom-lhm)[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)
