包含有用PHP脚本的辅助库。
github.com/FaimMedia/Helper
主页
源代码
问题
安装: 24
依赖: 0
建议者: 0
安全: 0
星星: 0
关注者: 2
分支: 0
开放问题: 0
Requires
Requires (Dev)
None
Suggests
Provides
Conflicts
Replaces
MIT aa9460230f9904aa7092eea653c83f7898e35dbc
This package is auto-updated.
Last update: 2024-09-29 05:28:09 UTC
使用composer安装
composer require faimmedia/helper
您可以在examples文件夹中找到示例文件。
examples
用于CLI模式的脚本。
parse (string $text, ?string $foregroundColor, ?string $backgroundColor, bool $bold = false)
parse
string
$text
$foregroundColor
$backgroundColor
bool
$bold
false
将字符串解析为彩色输出。
$foregroundColor和$backgroundColor参数接受的颜色
黑色
红色
绿色
黄色
蓝色
紫色
青色
白色