PHP code example of jleagle / html-builder
1. Go to this page and download the library: Download jleagle/html-builder 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/ */
jleagle / html-builder example snippets
$div = new Div();
$image = new Img('http://example.com/img.png);
$abbr = new Abbr('WIFI', 'Wireless Fidelity');
$ul = new Ul();
foreach([1, 2, 3] as $v)
{
$li = new Li('item '.$v);
$ul->addListItem($li);
}