wit/html

该软件包已被废弃且不再维护。未建议替代软件包。

适用于 PHP 5.6 的简单 HTML 抽象层

v1.0.0 2015-05-12 17:54 UTC

This package is not auto-updated.

Last update: 2020-04-23 19:53:28 UTC


README

需要 PHP 5.6!

简单的 'Hello World' 示例

<?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;")
]);

?>