weew/console-app

Integrates weew/app with weew/console

v1.11.1 2016-07-21 11:17 UTC

README

Build Status Code Quality Test Coverage Version Licence

Table of contents

Installation

composer require weew/console-app

Introduction

This is a very minimalistic wrapper for a console application. It is basically an integration of these two packages weew/app and weew/console.

Usage

Just create a new instance and your ready to go.

$app = new ConsoleApp();

// returns IConsole
$app->getConsole();

// start app
$app->start();

// run console
$app->parseArgv($argv);

Be aware that the --env switch is only available if debug mode has been enabled.