2017 © Pedro Peláez
 

library phinx

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

image

robmorgan/phinx

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

  • Wednesday, August 1, 2018
  • by robmorgan
  • Repository
  • 171 Watchers
  • 3466 Stars
  • 5,879,527 Installations
  • PHP
  • 307 Dependents
  • 14 Suggesters
  • 758 Forks
  • 202 Open issues
  • 79 Versions
  • 9 % Grown

The README.md

Phinx: Simple PHP Database Migrations

Build Status Code Coverage Packagist Version Minimum PHP Version Packagist Downloads, (*1)

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., (*2)

Check out book.cakephp.org/phinx (EN, ZH) for the comprehensive documentation., (*3)

phinxterm, (*4)

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

Phinx natively supports the following database adapters:, (*5)

  • MySQL
  • PostgreSQL
  • SQLite
  • Microsoft SQL Server

Install & Run

See version and branch overview for branch and PHP compatibility., (*6)

Composer

The fastest way to install Phinx is to add it to your project using Composer (https://getcomposer.org/)., (*7)

  1. Install Composer:, (*8)

    curl -sS https://getcomposer.org/installer | php
    
  2. Require Phinx as a dependency using Composer:, (*9)

    php composer.phar require robmorgan/phinx
    
  3. Install Phinx:, (*10)

    php composer.phar install
    
  4. Execute Phinx:, (*11)

    php vendor/bin/phinx
    

As a Phar

You can also use the Box application to build Phinx as a Phar archive (https://box-project.github.io/box2/)., (*12)

  1. Clone Phinx from GitHub, (*13)

    git clone https://github.com/cakephp/phinx.git
    cd phinx
    
  2. Install Composer, (*14)

    curl -s https://getcomposer.org/installer | php
    
  3. Install the Phinx dependencies, (*15)

    php composer.phar install
    
  4. Install Box:, (*16)

    curl -LSs https://box-project.github.io/box2/installer.php | php
    
  5. Create a Phar archive, (*17)

    php box.phar build
    

Documentation

Check out https://book.cakephp.org/phinx for the comprehensive documentation., (*18)

Other translations include:, (*19)

Contributing

Please read the CONTRIBUTING document., (*20)

News & Updates

Follow @CakePHP on Twitter to stay up to date., (*21)

Limitations

PostgreSQL

Misc

Version History

Please read the release notes., (*22)

License

(The MIT license), (*23)

Copyright (c) 2017 Rob Morgan, (*24)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:, (*25)

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software., (*26)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*27)

The Versions

01/08 2018

dev-master

9999999-dev https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

16/07 2018

dev-introduce-deprecation-of-up-and-down

dev-introduce-deprecation-of-up-and-down https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

12/07 2018

0.10.5

0.10.5.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

22/06 2018

0.10.3

0.10.3.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

19/06 2018

0.10.2

0.10.2.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

17/06 2018

0.10.1

0.10.1.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

08/06 2018

0.10.0

0.10.0.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

04/06 2018

dev-scrutinizer-patch-2

dev-scrutinizer-patch-2 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

26/05 2018

dev-add-query-builder

dev-add-query-builder https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

29/04 2018

dev-refactor-internals

dev-refactor-internals https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

29/04 2018

dev-phpstan-v9

dev-phpstan-v9 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

29/04 2018

dev-0.6.x-dev

dev-0.6.x-dev https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

30/03 2018

dev-fix-cs

dev-fix-cs https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

23/01 2018

dev-bump-year

dev-bump-year https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

23/12 2017

0.9.2

0.9.2.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

19/10 2017

dev-JayPHP-patch-1

dev-JayPHP-patch-1 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

15/09 2017

dev-add-stickler-config

dev-add-stickler-config https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

09/09 2017

v0.9.1

0.9.1.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

03/09 2017

v0.9.0

0.9.0.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

08/06 2017

dev-repeatable_migrations

dev-repeatable_migrations https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

05/06 2017

v0.8.1

0.8.1.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

28/02 2017

v0.8.0

0.8.0.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

28/02 2017

v0.7.2

0.7.2.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

19/02 2017

v0.7.1

0.7.1.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

10/02 2017

v0.7.0

0.7.0.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

08/02 2017

dev-0.7.x-dev

dev-0.7.x-dev https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

23/01 2017

v0.6.6

0.6.6.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

27/10 2016

v0.6.5

0.6.5.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

28/07 2016

v0.6.4

0.6.4.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

18/07 2016

v0.6.3

0.6.3.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

23/06 2016

v0.6.2

0.6.2.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

21/06 2016

v0.6.1

0.6.1.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

21/06 2016

v0.6.0

0.6.0.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Richard Quadling

database migrations db phinx database migrations

17/06 2016

v0.5.5

0.5.5.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

25/04 2016

v0.5.4

0.5.4.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

17/04 2016

dev-revert-822-patch-3

dev-revert-822-patch-3 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

17/04 2016

dev-0.4.x-dev

dev-0.4.x-dev https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

07/03 2016

v0.5.3

0.5.3.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

01/03 2016

v0.5.2

0.5.2.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

30/12 2015

v0.5.1

0.5.1.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

30/11 2015

v0.5.0

0.5.0.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

11/09 2015

v0.4.6

0.4.6.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

01/09 2015

v0.4.5

0.4.5.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

14/06 2015

v0.4.4

0.4.4.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

23/02 2015

v0.4.3

0.4.3.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

08/02 2015

v0.4.2.1

0.4.2.1 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

07/02 2015

v0.4.2

0.4.2.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

10/01 2015

dev-i413-fluent-phinx

dev-i413-fluent-phinx https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

23/12 2014

v0.4.1

0.4.1.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

14/12 2014

v0.4.0

0.4.0.0 https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

14/12 2014

dev-0.3.x-dev

dev-0.3.x-dev https://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

06/10 2014

v0.3.8

0.3.8.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

18/08 2014

v0.3.7

0.3.7.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

29/06 2014

v0.3.6

0.3.6.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

21/06 2014

v0.3.5

0.3.5.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

27/04 2014

v0.3.4

0.3.4.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

22/03 2014

v0.3.3

0.3.3.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

24/02 2014

v0.3.2

0.3.2.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

23/02 2014

v0.3.1

0.3.1.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

01/02 2014

v0.3.0

0.3.0.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

26/12 2013

dev-0.2.x-dev

dev-0.2.x-dev http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

16/11 2013

v0.2.9

0.2.9.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

25/08 2013

v0.2.8

0.2.8.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

24/08 2013

v0.2.7

0.2.7.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

24/08 2013

v0.2.6

0.2.6.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

26/05 2013

v0.2.5

0.2.5.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

20/04 2013

v0.2.4

0.2.4.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

06/04 2013

v0.2.3

0.2.3.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

11/03 2013

v0.2.2

0.2.2.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

03/03 2013

v0.2.1

0.2.1.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

13/01 2013

v0.2.0

0.2.0.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

07/01 2013

dev-0.1.x-dev

dev-0.1.x-dev http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

07/01 2013

v0.1.7

0.1.7.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

17/12 2012

dev-phing-phinx-task

dev-phing-phinx-task http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

09/12 2012

v0.1.6

0.1.6.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

04/11 2012

v0.1.5

0.1.5.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

20/10 2012

v0.1.4

0.1.4.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

20/10 2012

v0.1.3

0.1.3.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations

20/10 2012

v0.1.2

0.1.2.0 http://phinx.org

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

  Sources   Download

MIT

The Requires

 

The Development Requires

database migrations db phinx database migrations