louzet/cli-colorizer

1.0.0 2020-04-21 13:34 UTC

This package is auto-updated.

Last update: 2024-09-20 14:09:53 UTC


README

Latest Version on Packagist Build Status Quality Score

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.