vladbalmos/php-clicolor

This package is abandoned and no longer maintained. No replacement package was suggested.

A static class which outputs colored text when used in text terminals

0.1.2 2016-08-10 13:47 UTC

This package is not auto-updated.

Last update: 2021-05-01 00:08:04 UTC


README

A static class which outputs colored text when used in text terminals.

Usage

<?php
use CliColor\CliColor as CliColor;
echo CliColor::boldRed("DANGER!") . PHP_EOL;

This class is a work in progress and as such, only a few colors have been added. To see the full list of supported colors open src/CliColor.php and look at the $colors array.