louzet / cli-colorizer
1.0.0
2020-04-21 13:34 UTC
Requires
- php: ^7.3
Requires (Dev)
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2024-12-20 14:40:50 UTC
README
cli-colorizer is a very small library which allows you to colorize the output streams in console
Installation
You can install the package via composer:
composer require louzet/colorizer
Usage
<?php declare(strict_types=1); require_once 'vendor/autoload.php'; $color = new \CliColorizer\Colorizer(); echo $color->color('Mickael Louzet', $color::FOREGROUND_BROWN, $color::BACKGROUND_MAGENTA); echo $color->color('Mickael Louzet', $color::FOREGROUND_WHITE, $color::BACKGROUND_MAGENTA);
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.