1. Go to this page and download the library: Download arekx/html-processor 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/ */
arekx / html-processor example snippets
[
['@!DOCTYPE', 'html' => true],
['html', 'lang' => 'en-US', [
['head', [
['title', 'This is some title']
]],
['body', [
['h1', 'This is some page title'],
['button', 'This is a button'],
['a', 'href' => '#link', 'this is a link']
]]
]]
]