yii-cli-color Makes it easy to add color to your CLI output

  1. Requirements
  2. Installation
  3. Usage
  4. Resources

...overview of the extension...

Requirements

Yii 1.0 and above

Installation

Download extension into extensions directory

Add to component in configuration file: //protected/config/main.php ...

'components'=>array(
	...
	'cliColor' => array(
		'class' => 'ext.yii-cli-color.components.KCliColor',
	),

Usage

echo Yii::app()->cliColor->getColoredString("This text will be blue", 'blue');
echo Yii::app()->cliColor->getColoredString("This text will be red, with a black background", 'red', 'black);

Resources

2 0
5 followers
394 downloads
Yii Version: 1.1
License: MIT
Category: Console
Developed by: kevinkorb
Created on: Jan 30, 2013
Last updated: 5 years ago

Downloads

show all

Related Extensions