PHP Database Migrations For Everyone


Why use Phinx?

Super easy to install

Most database migration tools are framework dependent, complicated, confusing to install/configure and a pain in the ass to write migrations for. In less than 5 minutes you can install Phinx, create and execute your first migration.

Write migrations in Pure PHP or SQL

Phinx supports migrations written in both PHP and SQL. Use the PHP syntax to make your migrations portable between different database vendors or hand-code advanced queries. It's your choice.

Full Documentation

Phinx has extensive documentation available at

Integrates with your Deploy Tool

As Phinx executes from the command-line, it is painless to integrate with your deploy, build or CI tool.

Completely Free

Phinx is and will always remain completely free, open-source software. Developers are encouraged to fork, hack and modify Phinx. If you use Phinx commercially then please consider making a donation or purchasing the screencast below.


Buy the introductory screencast and help support Phinx development. Its only $9 USD!


230mb MP4 Video DRM-Free. Duration: 16m51s.

Rob Morgan

Hi, I'm the lead developer of Phinx and I develop it purely in my free time. Phinx would not be possible without the support and contributions of the community. If you use Phinx regulary then I encourage you to submit issues, write code/documentation or provide financial support.

Thanks for spreading the word!