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

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

wequid/phinx
============

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

10.16.0(2y ago)0166[3 PRs](https://github.com/SkiperformanceAS/phinx/pulls)MITPHP

Since Oct 20Pushed 1y agoCompare

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

READMEChangelogDependencies (9)Versions (106)Used By (0)

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

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

[![Build Status](https://github.com/cakephp/phinx/workflows/Phinx%20CI/badge.svg?branch=master&event=push)](https://github.com/cakephp/phinx/actions?query=workflow%3A%22Phinx+CI%22+branch%3Amaster+event%3Apush)[![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)[![Minimum PHP Version](https://camo.githubusercontent.com/4c62148864d567c4ee794ffab09c1dd4a3f45e41064bbb016440beddaae71a4d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e322d3838393242462e737667)](https://php.net/)[![Total Downloads](https://camo.githubusercontent.com/0e4008132345ceefe1e76d10d1db405b18cd55882f11013c48e48234c59c7cbd/68747470733a2f2f706f7365722e707567782e6f72672f726f626d6f7267616e2f7068696e782f642f746f74616c2e706e67)](https://packagist.org/packages/robmorgan/phinx)

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

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

37

—

LowBetter than 83% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

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

Recently: every ~13 days

Total

98

Last Release

785d ago

Major Versions

0.x-dev → 10.11.62024-03-13

PHP version history (4 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

### Community

Maintainers

![](https://www.gravatar.com/avatar/61a233ec1c4bd1f167b9f1dba402b9c8954ddae1d4fb0385054ec5f8e4e2ab1f?d=identicon)[Skiperformance](/maintainers/Skiperformance)

---

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 (356 commits)")[![dereuromark](https://avatars.githubusercontent.com/u/39854?v=4)](https://github.com/dereuromark "dereuromark (339 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 (33 commits)")[![ADmad](https://avatars.githubusercontent.com/u/142658?v=4)](https://github.com/ADmad "ADmad (31 commits)")[![JKingweb](https://avatars.githubusercontent.com/u/89590?v=4)](https://github.com/JKingweb "JKingweb (31 commits)")[![markstory](https://avatars.githubusercontent.com/u/24086?v=4)](https://github.com/markstory "markstory (30 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/wequid-phinx/health.svg)

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

PHPackages © 2026

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