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