TermWind allows you to building unique and beautiful PHP command-line applications, using the Tailwind CSS API. In short, it's like Tailwind CSS, but for the PHP command-line applications.
Requires PHP 8.0+
Require TermWind using Composer:
composer require nunomaduro/termwind --dev
use function TermWind\{line, render};
// Render one line...
line($message)->uppercase()->pl2()->pr2()->fontBold()->textColor('white')->bg('blue')->render();
// Render multiple lines...
render([
line(),
line()->width(20)->bg('red'),
line(),
]);
TermWind is an open-sourced software licensed under the MIT license.