PHP code example of ui-awesome / html
1. Go to this page and download the library: Download ui-awesome/html library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ui-awesome / html example snippets
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()