programandoconcabeza / php-color-cli
show text in php console line interface with colors
1.0.0
2023-02-20 15:49 UTC
Requires
- php: >=7.4
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.