nemundo/html

HTML 生成器

6 2023-03-18 07:19 UTC

This package is auto-updated.

Last update: 2024-09-14 23:47:21 UTC


README

生成HTML代码

安装

composer require nemundo/html

示例

$html = new \Nemundo\Html\Document\HtmlDocument();
$html->title = 'Document Example';

$h1 = new \Nemundo\Html\Heading\H1($html);
$h1->content = 'Hello World!';

$p = new \Nemundo\Html\Paragraph\Paragraph($html);
$p->content = 'Lorem ..';

$html->render();