Skip to content

Commit 1022352

Browse files
authored
Update example_colored.php
1 parent 5785192 commit 1022352

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

examples/example_colored.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,29 @@
22
require __DIR__ . '/../vendor/autoload.php';
33

44
$cli = new WizardCLI\WizardCLI(['theme' => 'wizard']);
5+
6+
$cli->art("WizardCLI Colors Demo");
7+
58
$cli->color("🧙 Welcome to the magical CLI!", "magenta+bold");
69
$cli->color("This is a test in blue.", "blue");
710
$cli->color("Success in green.", "green+bold");
11+
12+
// Simple color
13+
$cli->color("Blue text", "blue");
14+
$cli->color("Red and bold!", "red+bold");
15+
$cli->color("Green + underline", "green+underline");
16+
17+
// Multiline and strong styles
18+
$cli->color("🌟 Magical Bold Magenta 🌟", "magenta+bold");
19+
$cli->color("Grey dim", "gray+dim");
20+
$cli->color("Cyan underline", "cyan+underline");
21+
22+
// Loop through all colors/styles
23+
$styles = ["red", "green", "yellow", "blue", "magenta", "cyan", "white", "gray"];
24+
foreach ($styles as $style) {
25+
$cli->color("This is $style!", "$style+bold");
26+
}
27+
28+
// Combine styles
29+
$cli->color("Bold Underlined Gold", "yellow+bold+underline");
30+
$cli->color("Dim Blue", "blue+dim");

0 commit comments

Comments
 (0)