Method | Description | |
---|---|---|
__callStatic ( string $method, array $args ) : string | 静态方法 | |
colour ( string $text, string | array | integer $foregroundColors = null, string | integer $backgroundColors = null ) : string | 返回格式化后的字符串 | |
setNoAnsi ( ) | 不输出 ansi字符 |
Method | Description | |
---|---|---|
charToCode ( integer | string | array $color ) : array | 返回颜色对应的数字编码 |
public static colour ( string $text, string | array | integer $foregroundColors = null, string | integer $backgroundColors = null ) : string | ||
$text | string | 要着色的文本 |
$foregroundColors | string | array | integer | 前景色 eg: red、red+highlight、Colors::BLACK、[Colors::BLACK, Colors::HIGHLIGHT] |
$backgroundColors | string | integer | 背景色 |
return | string |