Documentation

Output extends Colorize

Table of Contents

$styles  : array<string|int, mixed>
Foregroud colors.
$quiet  : bool
Quiet.
bell()  : self
Ring the bell.
danger()  : self
Output the danger.
error()  : self
Output the error.
exit()  : void
Exit.
get()  : mixed
Get the color by key.
info()  : self
Output the info.
quiet()  : self
Mark the console quiet.
success()  : self
Output the warning.
table()  : self
Create the table on console.
warning()  : self
Output the warning.
write()  : self
Write on console.

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

$quiet

Quiet.

private bool $quiet = false
Tags
since
1.0.0

Methods

bell()

Ring the bell.

public bell([int $times = 1 ]) : self
Parameters
$times : int = 1
Tags
since
1.0.0
Return values
self

danger()

Output the danger.

public danger(string $msg) : self
Parameters
$msg : string
Tags
since
1.0.0
Return values
self

error()

Output the error.

public error(string $msg) : self
Parameters
$msg : string
Tags
since
1.0.0
Return values
self

exit()

Exit.

public exit() : void
Tags
since
1.0.0
Return values
void

get()

Get the color by key.

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

info()

Output the info.

public info(string $msg) : self
Parameters
$msg : string
Tags
since
1.0.0
Return values
self

quiet()

Mark the console quiet.

public quiet() : self
Tags
since
1.0.0
Return values
self

success()

Output the warning.

public success(string $msg) : self
Parameters
$msg : string
Tags
since
1.0.0
Return values
self

table()

Create the table on console.

public table(mixed $header, mixed $items) : self
Parameters
$header : mixed
$items : mixed
Tags
since
1.0.0
Return values
self

warning()

Output the warning.

public warning(string $msg) : self
Parameters
$msg : string
Tags
since
1.0.0
Return values
self

write()

Write on console.

public write(string $value[, bool $newLine = false ]) : self
Parameters
$value : string
$newLine : bool = false
Tags
since
1.0.0
Return values
self

Search results