# termwind **Repository Path**: mirrors/termwind ## Basic Information - **Project Name**: termwind - **Description**: Termwind 允许你使用 Tailwind CSS API,构建独特而漂亮的 PHP 命令行应用程序 - **Primary Language**: PHP - **License**: MIT - **Default Branch**: 2.x - **Homepage**: https://www.oschina.net/p/termwind - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2021-10-15 - **Last Updated**: 2026-02-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
Termwind
` The `
` element can be used as a paragraph. **Default Styles**: `block` ```php render(<<<'HTML'
This is a paragraph.
HTML); ``` ### `` The `` element can be used as an inline text container. ```php render(<<<'HTML'This is a CLI app built with Termwind.
HTML); ``` ### `` The `` element can be used as a hyperlink. It allows to use the `href` attribute to open the link when clicked. ```php render(<<<'HTML'This is a CLI app built with Termwind. Click here to open
HTML); ``` ### `` and `` The ``and `` elements can be used to mark the text as **bold**. **Default Styles**: `font-bold` ```php render(<<<'HTML'This is a CLI app built with Termwind.
HTML); ``` ### `` and `` The `` and `` elements can be used to mark the text as *italic*. **Default Styles**: `italic` ```php render(<<<'HTML'This is a CLI app built with Termwind.
HTML); ``` ### `
This is a CLI app built with Termwind.
This is a CLI
app built with Termwind.
Give your CLI apps a unique look
| Task | Status |
|---|---|
| Termwind | ✓ Done |
`
The `` element can be used as preformatted text.
```php
render(<<<'HTML'
Text in a pre element
it preserves
both spaces and
line breaks
HTML);
```
### ``
The `` element can be used as code highlighter. It accepts `line` and `start-line` attributes.
```php
render(<<<'HTML'
try {
throw new \Exception('Something went wrong');
} catch (\Throwable $e) {
report($e);
}
HTML);
```
---
Termwind is an open-sourced software licensed under the **[MIT license](https://opensource.org/licenses/MIT)**.