programandoconcabeza/php-color-cli

show text in php console line interface with colors

Installs: 71

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/programandoconcabeza/php-color-cli

1.0.0 2023-02-20 15:49 UTC

This package is auto-updated.

Last update: 2025-12-20 22:08:03 UTC


README

You can manage the style of output text in PHP console command line.

Installation

Install php-color-cli with composer intsall

  composer require programandoconcabeza/php-color-cli

Usage/Examples

You have more examples of colors inside of options, this is an example:

use ProgramandoConCabeza\PHPColorCli;

PHPColorCli::getColoredString(
    'text',
    PHPColorCli::colors()->yellow(),
    PHPColorCli::background()->backgroundRed(),
    PHPColorCli::options()->underline()
)

Except the Text, the other fields are nullable, so, doesn't matter if you don't put anything in the other arguments

Support

For support, email programandoconcabeza@gmail.com.