newage/console-tools

Zend Framework 2 console module for work with database

2.0.5 2024-01-13 13:53 UTC

README

Database migrations module for Zend Framework 2 For actions of database. Create migrations, apply fixtures and reset schema

Scrutinizer Code Quality Travis CI Coverage Status

##Install

Add to composer.json

"require": {
    "newage/console-tools": "<release-number>"
},
"repositories": [
    {
        "type": "vcs",
        "url":  "git@github.com:newage/console-tools.git"
    }
]

Add to ./config/application.config.php

'modules' => array(
    'ConsoleTools'
),

Copy config file console-tools.local.php.dist to ./config/autoload/console-tools.local.php

$> cp ./vendor/newage/console-tools/config/console-tools.local.php.dist ./config/autoload/console-tools.local.php

##Usage

Start console tools

$> php ./zf.php migration migrate

##Bash Completion

For completion commands in bash in Ubuntu. Need install bash-completion package if not it.

  • Copy file console-tool-completion.bash to your HOME DIR
  • Modify bashrc. Add string source ~/console-tool-completion.bash. Reload terminal.