php colorconsole
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
src
.gitignore
CHANGELOG.md
LICENSE
README.md
composer.json

README.md

ColorConsole

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.