This package is abandoned and will receive no further development!
We recommend using laminas/laminas-cli.
I've included minor changes for PHP 8 composer config as other forks have done. This fork also uses greg-fischer/laminas-console updates.
I also included some updates to RouteNotFoundStrategy.php in another fork by: Tigran Makaryan https://github.com/developer-devPHP/laminas-mvc-console/commit/e35a734c79fabfc6d033e88ae727d33aed013d2b
This appears to help for PHP 8.1, but I have not tested.
Our console MVC code seems to work ok in PHP 8.2 so far, but our code is quite simple and may not use enough of the features to cause errors.
laminas-mvc-console provides integration between:
- laminas-console
- laminas-mvc
- laminas-router
- laminas-view
and replaces the console functionality found in the v2 releases of the latter three components.
- File issues at https://github.com/laminas/laminas-mvc-console/issues
- Documentation is at https://docs.laminas.dev/laminas-mvc-console/
$ 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. If you are not, please read the introduction for details on how to register the functionality with your application.
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.
Please see the migration guide for details on how to migrate your existing laminas-mvc console functionality to the features exposed by this component.