PHP code example of wit / html

1. Go to this page and download the library: Download wit/html 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/ */

    

wit / html example snippets

 php

namespace Wit\Html;

 World!");
echo new Element("div", [
	new Element("span", function() {
		return new Element("strong", "This is a");
	}),
	(new Element("span", function($str) {
		return $str;
	}))->bind(" simple HTML Abstraction!")->attribute("style", "color: red;")
]);