Skip to content

bubnov-mikhail/CliColor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CliColor

Description

php lib for preparing colored messages (in Cli env)
Also provide pretty "load progress" for indicate some long process cycling(|/=\...)
All methods are static

Usage examples

<?php
require_once 'vendor/autoload.php';
use CliColor\CliColor;

echo CliColor::Success("Some text to user"); //will return pretty white text on green background
echo CliColor::Success("Some text to user",true); //will return pretty white text on green background on new line

echo CliColor::Warning("Some text to user"); //will return pretty white text on green background
echo CliColor::Notify("Some text to user"); //will return pretty dark text on gray background
echo CliColor::Promt("Some text to user"); //will return pretty white text on blue background

CliColor::Wait(); //each time you call it, will print one symbol in cycle (prev symbol of progress will be deleted); You do not need to echo method return

About

php Cli coloring output

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages