riddlestone/zf-console

This package is abandoned and no longer maintained. The author suggests using the riddlestone/brokkr-console package instead.

A Zend Framework 2 module for Symfony Console

v1.0.1 2019-11-10 15:56 UTC

This package is auto-updated.

Last update: 2020-01-28 20:16:49 UTC


README

A Zend Framework 2 module for Symfony Console

Repository archived 2020-01-28

This repository has moved to riddlestone/brokkr-console.

Installation

Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.

composer require riddlestone/zf-console

Usage

To include your Symfony\Component\Console\Command\Command commands in the console, add them to your module's config file:

<?php
return [
    'console' => [
        'commands' => [
            'My\\Command',
        ],
    ],
    'service_manager' => [
        'factories' => [
            'My\\Command' => 'My\\CommandFactory',
        ],
    ],
];

Your command will now be available in your project:

vendor/bin/console my-command

Get Involved

File issues at https://github.com/riddlestone/zf-console/issues