jleagle/html-builder
最新稳定版本:0.0.1
Composer 安装命令:
composer require jleagle/html-builder
包简介
A package to create clean HTML
README 文档
README
A package to create clean HTML
Usage
Create elements using their class:
$div = new Div(); $image = new Img('http://example.com/img.png);
Each class has different constructor parameters to help you create the element:
$abbr = new Abbr('WIFI', 'Wireless Fidelity');
Which returns <abbr title="Wireless Fidelity">WIFI</abbr>
And helper methods to do common tasks:
$ul = new Ul(); foreach([1, 2, 3] as $v) { $li = new Li('item '.$v); $ul->addListItem($li); }
Which will echo
<ul> <li>item 1</li> <li>item 2</li> <li>item 3</li> </ul>
Credits
统计信息
- 总下载量: 86
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2014-08-16