Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ui-awesome/html

UI Awesome HTML code generator for PHP.
https://github.com/ui-awesome/html

List: html

code-generator html php ui-awesome

Last synced: about 2 months ago
JSON representation

UI Awesome HTML code generator for PHP.

Awesome Lists containing this project

README

        








UI Awesome HTML Code Generator for PHP.





PHPUnit


Codecov


Infection


Psalm


Psalm Coverage


Style ci

The **HTML** repository is a powerful tool for generating `HTML` code using `PHP`.

```php
use UIAwesome\Html\{Document\Body, Document\Html, Group\Div, Semantic\Header};

echo Html::widget()
->content(
$this->render('header'),
Body::widget()
->class('content flex flex-col h-[100vh] min-h-[100vh] bg-gray-100 dark:bg-gray-500 theme-loading')
->content(
Header::widget()->content($this->render('component/menu')),
Div::widget()
->class('flex-grow flex flex-col justify-center')
->content(
Div::widget()->class('h-full flex flex-col justify-center')->content($content)
),
$this->render('footer')
)
)
->lang('en')
->render()
```

## Installation

The preferred way to install this extension is through [composer](https://getcomposer.org/download/).

Either run

```shell
composer require --prefer-dist ui-awesome/html:^0.2
```

or add

```json
"ui-awesome/html": "^0.2"
```

## Usage

[Check the documentation docs](/docs/README.md) to learn about usage.

## Testing

[Check the documentation testing](/docs/testing.md) to learn about testing.

## Support versions

[![PHP81](https://img.shields.io/badge/PHP-%3E%3D8.1-787CB5)](https://www.php.net/releases/8.1/en.php)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

## Our social networks

[![Twitter](https://img.shields.io/badge/twitter-follow-1DA1F2?logo=twitter&logoColor=1DA1F2&labelColor=555555?style=flat)](https://twitter.com/Terabytesoftw)