laminas-mvc-console

Integration between laminas-mvc and laminas-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 laminas-mvc-console long term. We strongly urge developers to start migrating their MVC-based console tooling to use other libraries, such as laminas/laminas-cli.


For use with laminas-mvc v3 and up

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

Installation

$ composer require laminas/laminas-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 Laminas application.

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

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

If using Laminas API Tools, update your config/modules.config.php:

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

Migration

In order to separate the console tooling from laminas-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!