# Phinx

> Database migrations for PHP apps, without an ORM or framework

Source: https://talira.ai/catalog/phinx-n5c5fcer
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [developer tools / database / migrations](https://talira.ai/categories/developer-tools/database/migrations), [languages / php](https://talira.ai/categories/languages/php)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Cake Software Foundation, Inc.](https://talira.ai/orgs/cake-software-foundation.md)

Phinx is a database migration tool for PHP: you write migrations in database-agnostic PHP, migrate up and down, run them on deployment and seed data, without the weight of an ORM or framework, so it fits any app. It supports [MySQL](https://talira.ai/catalog/mysql-dy4scprm.md), [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md), [SQLite](https://talira.ai/catalog/sqlite-cys3nt23.md) and Microsoft SQL Server, and is maintained under the [CakePHP](https://talira.ai/catalog/cakephp-dy095p5h.md) organisation.

## Links

- Website: https://phinx.org/
- GitHub: https://github.com/cakephp/phinx
- Docs: https://phinx.org/

## Problems it solves

- manage database schema migrations in a PHP app without a framework
- version the database schema of a PHP project
- seed a database for development in PHP

## Features

- database-agnostic migrations in PHP
- migrate up and down
- seed data
- MySQL, PostgreSQL, SQLite and SQL Server adapters
- works with any PHP app

## Trust

Overall: 0.43 out of 1.
Signals: maintenance 0.27, adoption 0.73, momentum 0.43, community 1.00, backing 0.30, extensibility 0.00.

- latest release 0.16.12 5 months ago
- 4.5k GitHub stars
- 383 contributors
- backed by Cake Software Foundation, Inc.

Warnings:

- last commit 4 months ago

## Related

- Works with [MySQL](https://talira.ai/catalog/mysql-dy4scprm.md)
- Works with [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md)
- Works with [SQLite](https://talira.ai/catalog/sqlite-cys3nt23.md)

## Alternatives

- [Atlas](https://talira.ai/catalog/atlas-vjsak9tx.md): Database schema as code: plan, lint, test and apply schema migrations, like Terraform for databases
- [Reshape](https://talira.ai/catalog/reshape-g9t6827t.md): An easy-to-use, zero-downtime schema migration tool for Postgres
- [sqldef](https://talira.ai/catalog/sqldef-0273hr6q.md): Idempotent schema management in plain SQL for MySQL, PostgreSQL, SQLite and SQL Server
- [pgroll](https://talira.ai/catalog/pgroll-gdjd3cnf.md): Zero-downtime, reversible schema migrations for Postgres
- [Liquibase](https://talira.ai/catalog/liquibase-bkqpwkmt.md): Track, version, deploy and roll back database schema changes across 70+ databases

## Sources

[^1]: https://github.com/cakephp/phinx/blob/0.x/LICENSE (checked 29 Nov 2026)
