PHP code example of 8fold / php-html-builder
1. Go to this page and download the library: Download 8fold/php-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/ */
8fold / php-html-builder example snippets
use Eightfold\HTMLBuilder\Document;
use Eightfold\HTMLBuilder\Element;
Document::create('title')
->head(
Element::link()
->omitEndTag()->props('rel stylesheet', 'href style.css'),
Element::script()->props('src script.js')
)->body(
Element::p('paragraph content')
)
Element::input()->omitEndTag()->props("