Skip to content

Commit 0e73072

Browse files
authored
Update README.md
1 parent 1a20553 commit 0e73072

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ $rendered = Highlighter::create()->highlight(file_get_contents(__FILE__));
3939

4040
## Console color
4141

42+
```php
43+
Color::printf('<info>%s</info> world', 'hello');
44+
Color::println('hello world', 'info');
45+
Color::println('hello world', 'error');
46+
Color::println('hello world', 'warning');
47+
Color::println('hello world', 'success');
48+
```
49+
4250
![colors](./example/all-color-style.jpg)
4351

4452
## Cli downloader

0 commit comments

Comments
 (0)