Documentation

Input extends Colorize

Table of Contents

$styles  : array<string|int, mixed>
Foregroud colors.
ask()  : string
Prompt for input input.
confirm()  : bool
Prompt for input confirm.
get()  : mixed
Get the color by key.
secret()  : bool
Prompt for input secret input like password.

Properties

$styles

Foregroud colors.

public array<string|int, mixed> $styles = ['bold' => '1m', 'faded' => '2m', 'underlined' => '4m', 'blinking' => '5m', 'reversed' => '7m', 'hidden' => '8m', 'red' => '31m', 'green' => '32m', 'yellow' => '33m', 'blue' => '34m', 'magenta' => '35m', 'cyan' => '36m', 'light_gray' => '37m', 'dark_gray' => '90m', 'white' => '0m', 'bg:red' => '41m', 'bg:green' => '42m', 'bg:yellow' => '53m', 'bg:blue' => '44m', 'bg:magenta' => '45m', 'bg:cyan' => '46m', 'bg:light_gray' => '47m', 'bg:dark_gray' => '100m', 'bg:white' => '0m']
Tags
since
1.0.0

Methods

ask()

Prompt for input input.

public ask() : string
Tags
since
1.0.0
Return values
string

confirm()

Prompt for input confirm.

public confirm() : bool
Tags
since
1.0.0
Return values
bool

get()

Get the color by key.

public get(string $style) : mixed
Parameters
$style : string
Tags
since
1.0.0
Return values
mixed

secret()

Prompt for input secret input like password.

public secret(string $prompt) : bool
Parameters
$prompt : string

Message to display.

Tags
since
1.0.0
Return values
bool

Search results