From a9a3a8c8f46bc3842d1fd665378f0fce6f7000fa Mon Sep 17 00:00:00 2001 From: Nick Sagona Date: Wed, 13 Dec 2023 09:10:50 -0600 Subject: [PATCH] Update README --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dd5ff72..a3ea02b 100644 --- a/README.md +++ b/README.md @@ -151,7 +151,21 @@ Colors ------ On a console terminal that supports it, you can colorize text outputted to the console -with the ``Pop\Console\Color::colorize()`` method: +with the ``colorize()`` method: + +```php +use Pop\Console\Console; +use Pop\Console\Color; + +$console = new Console(); +$console->write( + 'Here is some ' . + $console->colorize('IMPORTANT', Color::BOLD_RED) . + ' console information.' +); +``` + +The ``colorize()`` method is also available as a static method on the ``Pop\Console\Color`` class: ```php use Pop\Console\Console;