eznio/styler
Composer 安装命令:
composer require eznio/styler
包简介
Simple CLI styling helper
README 文档
README
Overview
Simple CLI styling helper. Generates ASCII sequences to change console bg/fg-colors and some text effects
echo Styler::get(Styles::HYPERLINK) . 'this looks like a link' . Styler::reset() . "\n"; echo Styler::get([ BackgroundColors::WHITE, ForegroundColors::BLUE, TestStyles::UNDERLINE ]) . 'this looks like a link too!' . Styler::reset() . "\n";
Reference
Styler::get(array $style)
Returns sequence for given style(-s). Preferred one.
Styler::single($style)
Returns sequence for single given style
Styler::combined(array $styles)
Returns sequence for multiple given styles
Styler::reset()
Returns reset sequence (return to console default colors)
Style reference files
ForegroundColors- foreground colors listBackgroundColors- background colors listTextStyles- list of text styles. Some of them may be not supported by your console!StyleSets- some useful (sometimes) shortcuts
统计信息
- 总下载量: 302
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-12-01