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/wizardcliuse 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 testPull 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! β¨