olive-cms/colorconsole

php colorconsole

Installs: 114

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/olive-cms/colorconsole

1.0.1 2018-08-18 18:11 UTC

This package is auto-updated.

Last update: 2025-09-22 06:01:24 UTC


README

ColorConsole customized https://github.com/kevinlebrun/colors.php/ for Olive: color.php license: (The MIT License) Copyright (c) 2018 Kevin Le Brun lebrun.k@gmail.com

Installation

Install the latest version with

$ composer require olive-cms/colorconsole

Basic Usage

require_once 'vendor/autoload.php';
use Olive\Tools\ColorConsole;

echo ColorConsole::render(
  'Your Message',
  [
    'color' => 'magenta',
    'background' => 'white',
    'style' => ['bold', 'reverse'],
    'align' => 'center'
  ]
);

Documentation

Requirements

  • PHP 5.5+.

License

olive-cms/colorconsole is licensed under the MIT license.