There is no license information available for the latest version (0.3.0) of this package.

UI Awesome HTML Code Generator for PHP.

0.3.0 2024-03-31 12:21 UTC

This package is auto-updated.

Last update: 2024-05-01 00:11:21 UTC


README

103309199?s%25253D400%252526u%25253Dca3561c692f53ed7eb290d3bb226a2828741606f%252526v%25253D4 logo.jpg

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.

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.

Either run

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

or add

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

Usage

Check the documentation docs to learn about usage.

Testing

Check the documentation testing to learn about testing.

Support versions

PHP81

License

The MIT License (MIT). Please see License File for more information.

Our social networks

Twitter