elnebuloso/flex-code-html
最新稳定版本:1.1.0
Composer 安装命令:
composer require elnebuloso/flex-code-html
包简介
html code generator
关键字:
README 文档
README
Description
The Goal of this Package is to create a simple and MVC independent HTML Code Renderer.
Requirements
The following versions of PHP are supported by this version.
- PHP 5.4
- PHP 5.5
- PHP 5.6
- PHP 7.0
- HHVM
Coding Standards
Flex follows the standards defined in the PSR-0, PSR-1, PSR-2 and PSR-4 documents.
Installation / Usage
Via Composer
{
"require": {
"elnebuloso/flex-code-html": "~1.0"
}
}
Examples
- each tag has a render method which returns the html code
- each tag has the magic "__toString" method which renders the html code over the render method
- the setter methods on the tag object are chainable
- you can define the doctype in which the tag should render
- the doctype e.g. decides how to close the tag (self-closing tag, void / non-void tags)
- each tag can have children of TagInterface or String which will be rendered as the tag body (only if tag is not marked as non-void tag)
see public/examples.php for more examples
统计信息
- 总下载量: 242
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-09