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

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

typrint/phinx
=============

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

v1.0.5(1y ago)0117MITPHPCI failing

Since Dec 22Pushed 1y agoCompare

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

READMEChangelog (5)Dependencies (9)Versions (7)Used By (0)

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

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

[![Build Status](https://github.com/typrint/phinx/workflows/CI/badge.svg?branch=0.x&event=push)](https://github.com/typrint/phinx/actions?query=workflow%3A%22CI%22+branch%3A0.x+event%3Apush)[![Code Coverage](https://camo.githubusercontent.com/5e132249e5f1ab5fa9d4e91973a52807cae1ededa52a001c880a23174d728144/68747470733a2f2f636f6465636f762e696f2f67682f74797072696e742f7068696e782f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/typrint/phinx)[![Packagist Version](https://camo.githubusercontent.com/4a49330b3dbf355eae3fcb6748640e6be2b25330725c0e8cb8e12454f07bd53f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74797072696e742f7068696e78)](https://camo.githubusercontent.com/4a49330b3dbf355eae3fcb6748640e6be2b25330725c0e8cb8e12454f07bd53f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74797072696e742f7068696e78)[![Minimum PHP Version](https://camo.githubusercontent.com/183804d09fec16ca7b6209b007250b7d8db1b915042feb093a9f20e6e1f25359/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e312d3838393242462e737667)](https://php.net/)[![Packagist Downloads](https://camo.githubusercontent.com/b105615fe7e07bd27894f59e3bd2035f22d428ae78ff76e45ca27366c0e6e35a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74797072696e742f7068696e78)](https://camo.githubusercontent.com/b105615fe7e07bd27894f59e3bd2035f22d428ae78ff76e45ca27366c0e6e35a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74797072696e742f7068696e78)

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)

### 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 typrint/phinx

    ```

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

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/typrint/phinx/releases).

### License

[](#license)

MIT

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance46

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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

Total

6

Last Release

416d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d08dfccb5991893613983b4652b60e434ecb6c2ce8b4bfcbbd444d7c3d541b0d?d=identicon)[devhaozi](/maintainers/devhaozi)

---

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 (407 commits)")[![dereuromark](https://avatars.githubusercontent.com/u/39854?v=4)](https://github.com/dereuromark "dereuromark (385 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/typrint-phinx/health.svg)

```
[![Health](https://phpackages.com/badges/typrint-phinx/health.svg)](https://phpackages.com/packages/typrint-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)[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)
