Symfony Console Component for Zend Framework MVC

Installs: 3 297

Dependents: 0

Stars: 1

Watchers: 1

Forks: 1

Open Issues: 1

Language: PHP

0.1.2 2013-01-10 08:36 UTC


Symfony Console Module for Zend Framework. Note that this is a full replacement for the Zend Console so your zend commands will not work any longer.

See Symfony Console on how to write commands.


Installation of DoctrineModule uses composer. For composer documentation, please refer to

  1. cd my/project/directory
  2. create or modify the composer.json file within your ZF2 application file with following contents:

         "require": {
             "wfk/symfony-console-module": "*"
  3. install composer via curl -s | php (on windows, download and execute it with PHP). Then run php composer.phar install
  4. open my/project/directory/configs/application.config.php and add the following key to your modules:


Register commands

All commands registered in config[console][commands] get pulled from the service locator and placed in the Symfony console application.

return array(
    'console' => array(
        'commands' => array(

Running commands

To run your console app simply run index.php. From your project root:

php public/index.php <arguments>

Extra configuration

The following extra configurations are optional for the Symfony console application.

return array(
    'console' => array(
        'name' => 'Some console title',
        'version' => 'Some console version',
        'commands' => array(
            // ...