Termwind, front-end like syntax for Symfony Console | implenton

Laravel recently revamped its Artisan commands output look. Take a look at the before and after comparison; it looks very cool.

Laravel still uses Symfony's Console component, but to help them with the styling Termwind was required.

In short, it's like Tailwind CSS, but for the PHP command-line applications.

With it, you use HTML and some utility CSS classes to create the CLI output; for example:

use function Termwind\{render};

render('<div class="px-1 bg-green-300">Termwind</div>');

In essence, this library translates this front-endy code into something that the Symfony Console understands. This is apparent if you take a look at their tests.