PHP code example of lamoni / markupbuilder
1. Go to this page and download the library: Download lamoni/markupbuilder 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/ */
lamoni / markupbuilder example snippets
$div = new \Lamoni\MarkupBuilder\MarkupBuilder();
echo $div->divOpen('myIDHere')
->class('myClassHere')
->madeUpAttribute('theValue')
->attribute_with_hyphen('theHyphenValue');
echo "CONTENT!";
echo $div->divClose();