wujunze/php-cli-color
最新稳定版本:v2.4
Composer 安装命令:
composer require wujunze/php-cli-color
包简介
Simple and easy to use the PHP command-line output of color
README 文档
README
Simple and easy to use the PHP command-line output of color
Installation
composer require wujunze/php-cli-color
How to use
<?php require_once __DIR__ . './../vendor/autoload.php'; $colors = new Wujunze\Colors(); // Test some basic printing with Colors class echo $colors->getColoredString("Testing Colors class, this is purple string on yellow background.", "purple", "yellow"); echo $colors->getColoredString("Testing Colors class, this is blue string on light gray background.", "blue", "light_gray"); echo $colors->getColoredString("Testing Colors class, this is red string on black background.", "red", "black"); echo $colors->getColoredString("Testing Colors class, this is cyan string on green background.", "cyan", "green"); echo $colors->getColoredString("Testing Colors class, this is cyan string on default background.", "cyan"); echo $colors->getColoredString("Testing Colors class, this is default string on cyan background.", null, "cyan");
run result
统计信息
- 总下载量: 63.31k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 43
- 点击次数: 1
- 依赖项目数: 13
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-03-17