7

GitHub - nunomaduro/termwind: 🍃 In short, it's like Tailwind CSS, but for the PH...

 2 years ago
source link: https://github.com/nunomaduro/termwind
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Termwind


Termwind allows you to build 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.

Installation & Usage

Requires PHP 8.0+

Require Termwind using Composer:

composer require nunomaduro/termwind --dev

Get Started

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(),
]);

TODO...

Termwind is an open-sourced software licensed under the MIT license.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK