container-interop console.
Install via composer:
$ composer require aist/console
If you use zf-component-installer, that component will install itself as a module for you.
Register your commands and helpers in config
// console.global.php
return [
'console' => [
'commands' => [
YourCommand::class,
],
'helpers' => [
],
],
];