承接 pbergman/whiptail 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pbergman/whiptail

最新稳定版本:1.0.0

Composer 安装命令:

composer require pbergman/whiptail

包简介

a php wrapper for linux native whiptail (shell dialog)

README 文档

README

a php cli wrapper for linux whiptail

Installation

The recommended way to install is through composer.

{
    "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.

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    <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

统计信息

  • 总下载量: 660
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固