2017 © Pedro Peláez
 

library whiptail

a php wrapper for linux native whiptail (shell dialog)

image

pbergman/whiptail

a php wrapper for linux native whiptail (shell dialog)

  • Tuesday, April 8, 2014
  • by pbergman
  • Repository
  • 2 Watchers
  • 6 Stars
  • 326 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

whiptail

a php cli wrapper for linux whiptail, (*1)

Installation

The recommended way to install is through composer., (*2)

{
    "require": {
        "pbergman/whiptail": "@stable"

    },
    "repositories": [
        {
            "type": "vcs",
            "url": "git@github.com:pbergman/whiptail.git"
        }
    ],
    "minimum-stability": "dev"
}

Usage


use WhipTail\Controller as WhipTail; if (WhipTail::isAvailable()) { $whipTail = new WhipTail(); $whipTail ->setOption($whipTail::OPTION_PASSWORD_BOX) ->setBoxOption('title', 'Password') ->setMessage('new password'); $whipTail->run(); }

Available options

OPTION_CHECK_LIST
OPTION_GAUGE
OPTION_INFO_BOX
OPTION_INPUT_BOX
OPTION_MENU
OPTION_MSG_BOX
OPTION_PASSWORD_BOX
OPTION_RADIO_LIST
OPTION_TEXT_BOX
OPTION_YES_NO

To see demo of all options look @ Test.php., (*3)

Box options

Box options can be set by method setBoxOption, first argument is the option name and second the argument., (*4)

options:, (*5)

    clear                           clear screen on exit
    defaultno                       default no button
    default-item    <string>        set default string
    fb                              use full buttons
    nocancel                        no cancel button
    yes-button      <text>          set text of yes button
    no-button       <text>          set text of no button
    ok-button       <text>          set text of ok button
    cancel-button   <text>          set text of cancel button
    noitem                          display tags only
    separate-output                 output one line at a time
    output-fd       <fd>            output to fd, not stdout
    title           <title>         display title
    backtitle       <backtitle>     display backtitle
    scrolltext                      force vertical scrollbars
    topleft                         put window in top-left corner

The Versions

08/04 2014

dev-master

9999999-dev

a php wrapper for linux native whiptail (shell dialog)

  Sources   Download

MIT

by Avatar philip

08/04 2014

1.0.0

1.0.0.0

a php wrapper for linux native whiptail (shell dialog)

  Sources   Download

MIT

by Avatar philip