zend-mvc-console

Integration between zend-mvc and zend-console.

Deprecated!

Due to the amount of integration required to support console tooling via the MVC, and because better, more standalone solutions exist, we will not be maintaining zend-mvc-console long term. We strongly urge developers to start migrating their MVC-based console tooling to use other libraries, such as zf-console.


For use with zend-mvc v3 and up

While this component has an initial stable release, please do not use it with zend-mvc releases prior to v3, as it is not compatible.

Installation

$ composer require zendframework/zend-mvc-console

Assuming you are using the component installer, doing so will enable the component in your application, allowing you to immediately start developing console applications via your MVC.

Manual installation

If you are not using the component installer, you will need to add this component as a module at the start of your module list in your Zend Framework application.

If using a vanilla skeleton application, update config/application.config.php:


'modules' => [
    'Zend\Mvc\Console', // add it to the top of your module list
    /* ... */
]

If using Apigility, update your config/modules.config.php:


return [
    'Zend\Mvc\Console', // add it to the top of your module list
    /* ... */
];

Migration

In order to separate the console tooling from zend-mvc and provide it as a standalone package, we needed to make a few changes. See the migration guide for details.

Support

Found a mistake or want to contribute to the documentation? Edit this page on GitHub!