2017 © Pedro Peláez
 

library console

image

davahome/console

  • Thursday, February 1, 2018
  • by dava
  • Repository
  • 1 Watchers
  • 0 Stars
  • 232 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 31 % Grown

The README.md

console

Provides functionality for symfony console commands, (*1)

Installation

php composer.phar require davahome/console

Usage

use DavaHome\Console\Command\AbstractCommand;

// Enable/Disable commands dynamically
public function configure()
{
  $this->setName('example')
    ->setEnabled(true);
}

// Ask questions
public function interact()
{
  $this->getQuestionHelper()->ask(new Question('What? '));
}

// Write to the error output
public function execute()
{
    $this->getErrorOutput($output)->writeln('This will be sent directly to STDERR (if supported)');
}

// Display progressBars
public function execute()
{
  $progressBar = $this->createProgressBar($output);
}

// Display tables
public function execute()
{
  $table = $this->createTable($output);
}
use DavaHome\Console\Helper\ProgressBarOptions;

// Use constants for defining the format
$progressBar->setFormat(ProgressBarOptions::FORMAT_DEBUG_NOMAX);
use DavaHome\Console\Helper\TableOptions;

// Use constants for defining the style
$progressBar->setFormat(TableOptions::STYLE_COMPACT);

The Versions

01/02 2018

dev-master

9999999-dev

  Sources   Download

GPL GPL-3.0-or-later

The Requires

 

01/01 2018

2.0

2.0.0.0

  Sources   Download

GPL

The Requires

 

17/10 2017

1.1.2

1.1.2.0

  Sources   Download

GPL

The Requires

 

15/10 2017

1.1.1

1.1.1.0

  Sources   Download

GPL

The Requires

 

13/10 2017

1.1

1.1.0.0

  Sources   Download

GPL

The Requires

 

23/07 2017

1.0.2

1.0.2.0

  Sources   Download

GPL

The Requires

 

24/05 2017

1.0.1

1.0.1.0

  Sources   Download

GPL

The Requires

 

24/05 2017

1.0

1.0.0.0

  Sources   Download

GPL

The Requires