2017 © Pedro Peláez
 

library phinx

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

image

cvtrust/phinx

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

  • Tuesday, March 27, 2018
  • by chadw
  • Repository
  • 4 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 758 Forks
  • 0 Open issues
  • 72 Versions
  • 5 % Grown

The README.md

Phinx: Simple PHP Database Migrations

Build Status Build status Code Coverage Latest Stable Version Total Downloads Join the chat at https://gitter.im/phinx-php/Lobby, (*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 https://book.cakephp.org/3.0/en/phinx.html (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

Composer

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

  1. Install Composer:, (*7)

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

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

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

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

  1. Clone Phinx from GitHub, (*12)

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

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

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

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

    php box.phar build
    

Documentation

Check out https://book.cakephp.org/3.0/en/phinx.html for the comprehensive documentation., (*17)

Other translations include:, (*18)

Contributing

Please read the CONTRIBUTING document., (*19)

News & Updates

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

Misc

Version History

Please read the CHANGELOG document., (*21)

License

(The MIT license), (*22)

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

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:, (*24)

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

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

The Versions

27/03 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
by Chad Woskoski

database migrations db phinx database migrations

27/03 2018

v0.9.5

0.9.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
by Chad Woskoski

database migrations db phinx database migrations

27/03 2018

dev-bug-fix-tinyint-issue

dev-bug-fix-tinyint-issue 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
by Chad Woskoski

database migrations db phinx database migrations

27/03 2018

v0.9.4

0.9.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
by Chad Woskoski

database migrations db phinx database migrations

09/11 2017

v0.9.3

0.9.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
by Chad Woskoski

database migrations db phinx database migrations

09/11 2017

dev-prepping-for-test

dev-prepping-for-test 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
by Chad Woskoski

database migrations db phinx database migrations

09/11 2017

v0.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
by Chad Woskoski

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

10/12 2016

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

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