HTML builder for php.
/* from v1.0.1: HTMLBuilder is alias for HTMLTagBuilder */
HTMLBuilder::start('html')->addTags(
HTMLTagBuilder::start('body')->addTag(
HTMLTagBuilder::start('title')
->setValue('Document')
),
HTMLTagBuilder::start('body')->addTag(
HTMLTagBuilder::start('h1')
->setValue('Hello world!')
)
)->end();
in HTML like:
<html>
<head>
<title>Document</title>
</head>
<body>
<h1>Hello world!</h1>
</body>
</html>