codedungeon/php-cli-colors

Liven up you PHP Console Apps with standard colors

Fund package maintenance!
standard
feross

Installs: 7 763 200

Dependents: 28

Suggesters: 0

Security: 0

Stars: 101

Watchers: 2

Forks: 4

Open Issues: 0

1.12.2 2021-01-05 04:48 UTC

This package is auto-updated.

Last update: 2024-11-05 13:14:46 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\PHPCliColors\Color;

echo Color::GREEN, 'Hello', Color::RESET, PHP_EOL;

above exemple

See rainbow.php sample for more details

License

Copyright © 2017-2020 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