1. Home
  2. Documentation
  3. zend-mvc-console

zend-mvc-console

Integration between zend-mvc and zend-console.

Deprecated!

Due to the amount of integration required to support console tooling via theMVC, and becausebetter, more standalone solutionsexist,we will not be maintainingzend-mvc-console long term. We strongly urge developers to start migrating theirMVC-based console tooling to use other libraries, such aszf-console.


For use with zend-mvc v3 and up

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

Installation

$ composer require zendframework/zend-mvc-console

Assuming you are using thecomponentinstaller, doing sowill enable the component in your application, allowing you to immediately startdeveloping console applications via your MVC.

Manual installation

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

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

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

If using Apigility, update yourconfig/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 astandalone package, we needed to make a few changes. See themigration guide for details.

Support

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