1. Go to this page and download the library: Download natepage/easy-html-element 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/ */
natepage / easy-html-element example snippets
php
$map = array(
'myDiv' => array(
'type' => 'div',
'text' => 'Simple Div Example'
)
);
$htmlElement = new NatePage\EasyHtmlElement\HtmlElement();
$div = $htmlElement->load('myDiv');
echo $div;
/**
* <div>
* Simple Div Example
* </div>
*/