Yii 1.1: yii-cli-color

Makes it easy to add color to your CLI output
5 followers

...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

  • https://github.com/kevinkorb/yii-cli-color

Be the first person to leave a comment

Please to leave your comment.

Create extension