danieljharvey/php-cli-colours 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

danieljharvey/php-cli-colours

Composer 安装命令:

composer require danieljharvey/php-cli-colours

包简介

A small library for using colours in CLI scripts

README 文档

README

I like my CLI scripts to be colourful and with this library I hope to achieve said colours

Example usage

include 'BashColours.php';
$bashColours=new \DanielJHarvey\CLIColours\BashColours();

echo "I am writing a nice CLI script and ".$bashColours->formatString("BANG!", 'red')." I need exciting things to happen\n";

echo $bashColours->formatString("But now everything is fine and stuff",'default','green');

Or now you can change forecolor with a big heap of shortcut functions:

include 'BashColours.php';
$colour=new \DanielJHarvey\CLIColours\BashColours();

echo $colour->red("red")." and ".$colour->yellow("yellow")." and ".$colour->lightMagenta("pink")." and ".$colour->green("green")."...\n";

The full set of foreground and background colors from this list are implemented:

http://misc.flogisoft.com/bash/tip_colors_and_formatting

Will consider adding bold/italic/blink etc later.

统计信息

  • 总下载量: 1.04k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-04-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固