Overview

Namespaces

  • Cz
  • None

Classes

  • Cli
  • Overview
  • Namespace
  • Class

Class Cli

Direct known subclasses

Cli
Namespace: Cz
Located at Cli.php
Methods summary
public static
# log( string $str )

Parameters

$str
public static
# error( string $str )

Parameters

$str
public static
# success( string $str )

Parameters

$str
public static
# warn( string $str )

Parameters

$str
public static
# info( string $str )

Parameters

$str
public static
# format( string $str, boolean $bold = FALSE, $color = NULL )

Parameters

$str
$bold
$color
public static array|false
# parseParams( array $argv )

Parameters

$argv

Returns

array|false
public static string
# formatPath( string $dir, string $currentDir )

Parameters

$dir
$currentDir

Returns

string
protected static
# detectOs( )
protected static string
# coloredString( string $str, string $color )

Parameters

$str
$color

Returns

string
Constants summary
string COLOR_ERROR
# '0;31'
string COLOR_SUCCESS
# '0;32'
string COLOR_WARNING
# '0;33'
string COLOR_INFO
# '0;34'
integer C_BLACK
# 30
integer C_RED
# 31
integer C_GREEN
# 32
integer C_YELLOW
# 33
integer C_BLUE
# 34
integer C_PURPLE
# 35
integer C_CYAN
# 36
integer C_WHITE
# 37
Properties summary
protected static boolean|null $isWindows
# NULL
czproject/phpcli v1.0.0 API documentation API documentation generated by ApiGen