2017 © Pedro Peláez
 

library consolekit-extension

An extension to maximebf/consolekit

image

jasny/consolekit-extension

An extension to maximebf/consolekit

  • Tuesday, August 5, 2014
  • by jasny
  • Repository
  • 0 Watchers
  • 1 Stars
  • 2,497 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 2 % Grown

The README.md

ConsoleKit extension

An extension to maximebf's ConsoleKit, (*1)

  • Help - Style help output similar to symfony/console and add support for @example tag.
  • Table widget - Output tabbed (help style) or framed tables.

Installation

Install the ConsoleKit extension using Composer with the following requirement:, (*2)

{
    "require": {
        "maximebf/consolekit": "1.*",
        "jasny/consolekit-extension": "1.*"            
    }
}

Usage

Help

$console = new ConsoleKit\Console();
$console->addCommand('\\Jasny\\ConsoleKit\\HelpCommand', 'help', true);

Table widget

Options (booleans): * headers - First row contains header (default: false) * border - Draw a border around the table (default: true) * frame - Draw a frame between the columns of the table (default: true) * skipEmpty - Skip empty columns (default: false), (*3)

$rows = array(
    array('Name', 'Occupation', 'Country'),
    array('John Doe', 'Plummer', 'Netherlands'),
    array('Joe Fisher', 'Cook', 'France'),
    array('Jack Black', 'Actor', 'USA')
);

$table = new Jasny\ConsoleKit\Widgets\Table($textwriter, $rows, array('headers'=>true));
$table->write();

The Versions

05/08 2014

dev-master

9999999-dev http://jasny.github.com/consolekit-extension

An extension to maximebf/consolekit

  Sources   Download

MIT

The Requires

 

console commands cli shell

25/04 2014

v1.0.2

1.0.2.0 http://jasny.github.com/consolekit-extension

An extension to maximebf/consolekit

  Sources   Download

MIT

The Requires

 

console commands cli shell

24/04 2014

v1.0.1

1.0.1.0 http://jasny.github.com/consolekit-extension

An extension to maximebf/consolekit

  Sources   Download

MIT

The Requires

 

console commands cli shell

24/04 2014

v1.0.0

1.0.0.0 http://jasny.github.com/consolekit-extension

An extension to maximebf/consolekit

  Sources   Download

MIT

The Requires

 

console commands cli shell