wit / html
This package is abandoned and no longer maintained.
No replacement package was suggested.
A simple HTML abstraction for PHP 5.6
v1.0.0
2015-05-12 17:54 UTC
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;") ]); ?>