PHPackages                             pbergman/whiptail - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. pbergman/whiptail

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pbergman/whiptail
=================

a php wrapper for linux native whiptail (shell dialog)

1.0.0(12y ago)86591MITPHP

Since Apr 8Pushed 11y ago2 watchersCompare

[ Source](https://github.com/pbergman/whiptail)[ Packagist](https://packagist.org/packages/pbergman/whiptail)[ RSS](/packages/pbergman-whiptail/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

whiptail
========

[](#whiptail)

a php cli wrapper for linux [whiptail](http://linux.die.net/man/1/whiptail)

Installation
------------

[](#installation)

The recommended way to install is [through composer](http://getcomposer.org).

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

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

```

Usage
-----

[](#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
-----------------

[](#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](https://github.com/pbergman/whiptail/blob/master/Test.php).

Box options
-----------

[](#box-options)

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

options:

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

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4421d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce73225a1c546feb93edc48c4b5d514a909aecceddc0fe0a021d4a42d2077e09?d=identicon)[pbergman](/maintainers/pbergman)

---

Top Contributors

[![pbergman](https://avatars.githubusercontent.com/u/1193198?v=4)](https://github.com/pbergman "pbergman (12 commits)")

### Embed Badge

![Health badge](/badges/pbergman-whiptail/health.svg)

```
[![Health](https://phpackages.com/badges/pbergman-whiptail/health.svg)](https://phpackages.com/packages/pbergman-whiptail)
```

###  Alternatives

[arnoson/kirby-vite

Vite helper for Kirby CMS

9759.2k3](/packages/arnoson-kirby-vite)[markrogoyski/itertools-php

Iteration tools for PHP

14911.3k](/packages/markrogoyski-itertools-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
