Zend Framework 3 module that provides integration of Phinx library

0.3.0 2019-11-24 09:27 UTC

This package is auto-updated.

Last update: 2020-07-27 19:48:05 UTC


Build Status Scrutinizer Code Quality Code Coverage

ZF3 module, integrated Phinx

Phinx is easy database migration manager



  1. Install Composer:
    curl -sS | php
  1. Require ZfPhinx as a dependency using Composer:
    php composer.phar require alexbuyanow/zfphinx
  1. Install Phinx:
    php composer.phar install
  1. Open my/project/directory/configs/application.config.php and add the following key to your modules:


Configure 'zfphinx' section in your application config

    'zfphinx' => [
        'paths' => [
            'migrations' => '<path to your migration directory>',
            'seeds'      => '<path to your seed directory>',
        'environments' => [
            'default_migration_table' => '<DB table for migrations journal. Default is phinxlog>',
            'default_database'        => '<Unnecessary default environment key>',
            '<environment key 1>'     => [
                'db_adapter' => '<DB adapter name from service locator>',
            '<environment key n>'     => [
                'db_adapter' => '<DB adapter name from service locator>',


Basic usage via console (from your project root)

    php public/index.php zfphinx <command> <flags>

List of available commands

    php public/index.php zfphinx