wit / html
A simple HTML abstraction for PHP 5.6
Installs: 285
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/wit/html
Requires
- php: >=5.6
This package is not auto-updated.
Last update: 2020-04-23 19:53:28 UTC
README
Requires PHP 5.6!
Simple 'Hello World' example:
<?php namespace Wit\Html; include( 'Element.php' ); echo new Element("h1", "Hello 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;") ]); ?>