Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please consider implementing ConsolePainter support. #21

Open
hopeseekr opened this issue Aug 24, 2023 · 1 comment
Open

Please consider implementing ConsolePainter support. #21

hopeseekr opened this issue Aug 24, 2023 · 1 comment

Comments

@hopeseekr
Copy link

Why not just make phpexperts/console-painter a dependency of this library?

Then anyone who uses your library can also do stuff like
image

with this code:

$p = new PHPExperts\ConsolePainter\ConsolePainter();

echo $p->bold()->italics('Bold italics') . ' ' . $p->red('Bold + Red') . "\n";
echo "Normal text\n";
echo $p->black()->onLightCyan('   Black on Light Cyan     ') . "\n";
echo $p->black()->onLightGreen('   Black on Light Green    ') . "\n";
echo $p->white()->onGreen('   White on Green          ') . "\n";
echo $p->bold()->white()->onGreen('   White on Green, Bolded  ') . "\n";
echo $p->bold()->underlined()->white()->onBlue('White on Blue, Bolded + Underlined') . "\n";
echo "\n";
@usernane
Copy link
Member

The painter way of formatting output is great.

The library webfiori/cli is part of webfiori/framework and one of the goals of the framework is to have minimum number of dependencies for web development.

If the community is interested in having such features for formatting outputs, then we can include this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants