Command Line Generator Module for Zend Framework 2
This free as in freedom module should easy up the usage of the cli readline component in the zend framework 2 in a zend framework 2 application. It includes furthermore a command line controller to generate the needed configuration as well as to generate the command line script which enables autocompletion in your zend framework 2 console application.
It is also available at openhub.net.
Check out the demo environment if you want to see it in action.
The current change log can be found here.
# generate configuration php public/index.php net_bazzline cli_generator configuration # generate cli script php public/index.php net_bazzline cli_generator cli
mkdir -p vendor/net_bazzline/zf_cli_generator @todo cd vendor/net_bazzline/zf_cli_generator git clone https://github.com/bazzline/zf_cli_generator
- adapt your application.config.php and add “NetBazzlineZfCliGenerator” into the “modules” section
<?php return array( 'modules' => array( 'Application', 'NetBazzlineZfCliGenerator' ), //...
- use zfcligenerator.global.php.dist as base
- copy this file into your config/autoload directory
- open this file and adapt it to your needs
Star it if you like it :-). Add issues if you need it. Pull patches if you enjoy it. Write a blog entry if you use it. Donate something if you love it :-].