FindSoftware

Phinx

PHP library and command-line tool for writing and running database migrations in PHP apps.

Phinx is a PHP library and command-line tool for writing and running database migrations. Migrations are written as database-agnostic PHP code or as SQL, run up and down, and can seed data after the database is created. The homepage says Phinx executes from the command line, so it fits into deploy, build and CI tools. The docs cover setup and use.

Worth knowing

The README’s Limitations section says the PostgreSQL adapter cannot set a unique constraint on a table.

Identity

Status
Active
Maintainer
Cake Software Foundation, Inc.4
Maintained by
Foundation
First release
20128

Rendering and deploy

Runs as
Dev only1
Install with
composer, phar3

Releases

Current major version
Pre-1.07
Last release
2026-07-037

Adoption

GitHub stars
4,5452
Packagist downloads
53,556,3436
Contributors
3079
Packagist downloads a month
1,263,1646

Why these figures do not compare

Sources

  1. 2026-11-16: links, Runs as
    phinx.org/
  2. 2026-11-16: links, Written in, License, GitHub stars
    api.github.com/repos/cakephp/phinx
  3. 2026-11-16: links, Categories, Databases, Install with, License model
    github.com/cakephp/phinx/blob/0.x/README.md
  4. 2026-11-16: Maintainer
    github.com/cakephp/phinx/blob/0.x/LICENSE
  5. 2026-11-16: Runtime, Minimum runtime
    github.com/cakephp/phinx/blob/0.16.12/composer.json
  6. 2026-11-16: Packagist downloads, Packagist downloads a month
    packagist.org/packages/robmorgan/phinx.json
  7. 2026-11-16: Current major version, Last release
    api.github.com/repos/cakephp/phinx/releases/tags/0.16.12
  8. 2026-11-16: First release
    repo.packagist.org/p2/robmorgan/phinx.json
  9. 2026-11-16: Contributors
    api.github.com/repos/cakephp/phinx/contributors?per_page=1

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON