powerclonic/better-console-color

A simpler version of php-parallel-lint/PHP-Console-Color


License
BSD-2-Clause

Documentation

PHP Better Console Color

A simpler version of the original PHP Console Color.

Installation

composer require powerclonic/better-console-color

Usage

You can see usage examples in the examples.php file

List of custom colors:

Foreground:

Foreground colors

Background:

Background colors

Avaliable colors:

These are the colors that you can use directly

Foreground:
  • blackText
  • redText
  • greenText
  • yellowText
  • magentaText
  • cyanText
  • whiteText
  • lightGrayText
  • darkGrayText
  • lightRedText
  • lightGreenText
  • lightYellowText
  • lightBlueText
  • lightMagentaText
  • lightCyanText
Backgronund
  • blackBg
  • redBg
  • greenBg
  • yellowBg
  • magentaBg
  • cyanBg
  • whiteBg
  • lightGrayBg
  • darkGrayBg
  • lightRedBg
  • lightGreenBg
  • lightYellowBg
  • lightBlueBg
  • lightMagentaBg
  • lightCyanBg

Other colors can be used with the applyCustomColor method