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

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

catchadmin/phinx
================

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

04PHP

Since Jan 20Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

### this package is fork from phinx version 0.9.2.

[](#this-package-is-fork-from-phinx-version-092)

Why Do This
-----------

[](#why-do-this)

The higher version of phinx depends on cakephp. If you need to use a higher version in other frameworks, you will download a lot of unnecessary dependencies, such as cakephp/core, so you need a clean version, so fork the latest version without dependencies. If there are new functions later, they can be added from this version.

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)

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

### License

[](#license)

(The MIT license)

Copyright (c) 2022 CatchAdmin

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/58aeeb2b0737ee495a9d240e562b55ef5f2140d3da9c887af155b296f2086f33?d=identicon)[JaguarJack](/maintainers/JaguarJack)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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