php-cli-color 安装使用结果 介绍
安装
composer require wujunze/PHP-cli-color '~1.0'
使用
getColoredString("Testing Colors class, this is purple string on yellow background.", "purple", "yellow") . PHP_EOL; echo $colors->getColoredString("Testing Colors class, this is blue string on light gray background.", "blue", "light_gray") . PHP_EOL; echo $colors->getColoredString("Testing Colors class, this is red string on black background.", "red", "black") . PHP_EOL; echo $colors->getColoredString("Testing Colors class, this is cyan string on green background.", "cyan", "green") . PHP_EOL; echo $colors->getColoredString("Testing Colors class, this is cyan string on default background.", "cyan") . PHP_EOL; echo $colors->getColoredString("Testing Colors class, this is default string on cyan background.", null, "cyan") . PHP_EOL;
结果
php-cli-color 安装使用结果 官网
https://github.com/wujunze/php-cli-color/tree/dev
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。