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: 4 months ago
JSON representation
UI Awesome HTML code generator for PHP.
- Host: GitHub
- URL: https://github.com/ui-awesome/html
- Owner: ui-awesome
- License: mit
- Created: 2024-03-05T14:15:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-31T12:24:09.000Z (over 1 year ago)
- Last Synced: 2025-02-19T16:01:58.985Z (4 months ago)
- Topics: code-generator, html, php, ui-awesome
- Language: PHP
- Homepage:
- Size: 242 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
UI Awesome HTML Code Generator for PHP.
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
[](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
[](https://twitter.com/Terabytesoftw)