Liven up you PHP Console Apps with standard colors
composer require codedungeon/php-cli-colors '~1.0'
or update your composer.json
...
"require": {
"codedungeon/php-cli-colors": "~1.0"
},
...
<?php
require __DIR__ . '/vendor/autoload.php';
use Codedungeon\PHPCliColors\Color;
echo Color::GREEN, 'Hello', Color::RESET, PHP_EOL;
See rainbow.php
sample for more details
Copyright © 2017-2020 Mike Erickson Released under the MIT license
php-cli-color written by Mike Erickson
E-Mail: [email protected]
Twitter: @codedungeon
Website: codedungeon.org