The magical PHP CLI toolkit - add color, tables, progress bars & ASCII Art to your terminal!
Turn your boring terminal into a magical world!
Add colors, enchanting tables, spellbinding progress bars, and wizardly ASCII art banners to any PHP console application.
- 🌈 Colors & Styles Print colored and styled text in seconds
- 🪄 ASCII Art Wizard banners & magical terminal art
- 📊 Tables Clean, beautiful table rendering for your data
- ⏳ Progress Bars Show task progress with charm and multiple themes
- 🎩 Multiple Themes Wizard, Sorcerer, Dark, Gold & more
- 💎 Modern API Easy to use, works everywhere PHP runs
composer require wizardloop/wizardcli
use WizardCLI\WizardCLI;
require 'vendor/autoload.php';
$cli = new WizardCLI(['theme' => 'wizard']);
$cli->art("WizardCLI"); // Magic banner
$cli->color("Welcome to the magical CLI!", "magenta+bold");
$cli->table(["Name", "Spell"], [
["Merlin", "Invisibility"],
["Morgana", "Fireball"]
]);
$cli->progressBar(100, "Created By Wizard Loop | @WizardLoop");
for ($i = 1; $i <= 100; $i++) {
usleep(40000);
$cli->progressAdvance();
}
$cli->progressFinish();
Progress Bar
$cli->progressBar(30, "Brewing potion");
for ($i = 1; $i <= 30; $i++) {
usleep(40000);
$cli->progressAdvance();
}
$cli->progressFinish();
ASCII Art
$cli->art("✨ Wizard CLI ✨");
Table
$cli->table(["Wizard", "Power"], [
["Gandalf", "Lightning"],
["Harry", "Expelliarmus"]
]);
See examples/ for more!
composer test
Pull requests, issues, and magical ideas are very welcome!
See CONTRIBUTING.md for details.
- Telegram: wizardloop.t.me
- GitHub: WizardLoop
MIT License
Made with 🪄 by WizardLoop
✨ Time for magic in your terminal! ✨