1. Go to this page and download the library: Download fischimglas/ptag 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/ */
use PTag\HtmlFactory;
echo HtmlFactory::empty()
->add('Some content')
->addClass('notshown');
use PTag\HtmlFactory;
use PTag\ElementCf;
ElementCf::setMode(ElementCf::MODE_XHML);
echo HtmlFactory::div()
->add(HtmlFactory::img(['src' => 'image.png']));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.