codedungeon/php-cli-colors

PHP Package for using color output in CLI commands

1.10.7 2018-05-17 01:34 UTC

README

Liven up you PHP Console Apps with standard colors

View on Packagist

image

Installation

composer require codedungeon/php-cli-colors '~1.0'

or update your composer.json

    ...
    "require": {
        "codedungeon/php-cli-colors": "~1.0"
    },
    ...

How to use

<?php

require __DIR__ . '/vendor/autoload.php';

use Codedungeon\Colors;

echo Color::GREEN . "Hello" . PHP_EOL;

See rainbow.php sample for more details

License

Copyright © 2017-2018 Mike Erickson Released under the MIT license

Credits

php-cli-color written by Mike Erickson

E-Mail: codedungeon@gmail.com

Twitter: @codedungeon

Website: codedungeon.org

Screenshot

Screenshot