jbrooksuk/laravel-colorize
Composer 安装命令:
composer require jbrooksuk/laravel-colorize
包简介
A handy set of Stringable mixins for CLI text.
README 文档
README
A mixin for Laravel's Stringable to easily apply colors and styles to CLI text.
Installation
You can install the package via Composer:
composer require jbrooksuk/laravel-colorize
Usage
blink
Make the text blink.
Str::of('Hey Laravel')->blink();
bold
Make the text bold.
Str::of('Hey Laravel')->bold();
colorize
Colorize the text. Foreground, Background.
Str::of('Hey Laravel')->colorize('red', 'blue');
conceal
Make the text invisible.
Str::of('Hey Laravel')->conceal();
reverse
Swap the foreground with the background and the background with the foreground.
Str::of('Hey Laravel')->colorize('red', 'blue')->reverse();
underscore
Make the text underscored.
Str::of('Hey Laravel')->underscore();
Chaining
Because Laravel Colorize uses Stringable, all of these methods can be chained together.
Str::of('Hey Laravel')->colorize('red', 'yellow')->bold()->blink();
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 47
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-05-21