newage / console-tools
Zend Framework 2 console module for work with database
Installs: 6 788
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 6
Open Issues: 5
Requires
- php: ^7.1|^8.0
Requires (Dev)
- phpunit/phpunit: 3.7.*
- squizlabs/php_codesniffer: 1.5.*
README
Database migrations module for Zend Framework 2 For actions of database. Create migrations, apply fixtures and reset schema
##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 yourHOME DIR
- Modify
bashrc
. Add stringsource ~/console-tool-completion.bash
. Reload terminal.