Download the PHP package danieljharvey/php-cli-colours without Composer
On this page you can find all versions of the php package danieljharvey/php-cli-colours. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download danieljharvey/php-cli-colours
More information about danieljharvey/php-cli-colours
Files in danieljharvey/php-cli-colours
Download danieljharvey/php-cli-colours
More information about danieljharvey/php-cli-colours
Files in danieljharvey/php-cli-colours
Vendor danieljharvey
Package php-cli-colours
Short Description A small library for using colours in CLI scripts
License MIT
Package php-cli-colours
Short Description A small library for using colours in CLI scripts
License MIT
Please rate this library. Is it a good library?
Informations about the package php-cli-colours
php-cli-colours
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.
All versions of php-cli-colours with dependencies
PHP Build Version
Package Version
No informations.
The package danieljharvey/php-cli-colours contains the following files
Loading the files please wait ....