net_bazzline / zf_cli_generator
free as in freedom zend framework 2 cli generator module
Requires
- php: >=5.3.3
- net_bazzline/php_component_cli_readline: 1.2.*
- net_bazzline/php_component_command: 1.2.*
- net_bazzline/php_component_process_pipe: 1.1.*
- net_bazzline/zf_console_helper: 1.2.*
- symfony/filesystem: ~2.7||~3.0
- zendframework/zendframework: 2.*
Requires (Dev)
- mockery/mockery: 0.9.4
- phpunit/phpunit: ~4.8||~5.0
README
Since 2020-09-28, this repository is moved to "archived status". Contact me if you are interessted in it.
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.
The build status of the current master branch is tracked by Travis CI:
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.
Example
# generate configuration php public/index.php net_bazzline cli_generator configuration # generate cli script php public/index.php net_bazzline cli_generator cli
Install
By Hand
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
With Packagist
"net_bazzline/zf_cli_generator": "dev-master"
Usage
- 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
API
API is available at bazzline.net.
Final Words
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 :-].