weew / console-app
Integrates weew/app with weew/console
v1.11.1
2016-07-21 11:17 UTC
Requires
- weew/app: ^2.1
- weew/console-container-aware: ^1.0
Requires (Dev)
- henrikbjorn/phpspec-code-coverage: ^2.0
- phpspec/phpspec: ^2.4
- satooshi/php-coveralls: ^0.6.1
- weew/helpers-phpspec: ^1.0
README
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.