1. Go to this page and download the library: Download yiisoft/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/ */
yiisoft / html example snippets
use Yiisoft\Html\Html;
use Yiisoft\Html\Tag\Meta;
echo new \Yiisoft\Html\Tag\Div()
->content(
new \Yiisoft\Html\Tag\A()
->mailto('[email protected]')
->content('contact us')
->render()
)
->encode(false)
->id('ContactEmail')
->class('red');
echo new \Yiisoft\Html\Tag\CustomTag('b')
->content('text')
->attribute('title', 'Important');