elnebuloso / flex-code-html
This package is abandoned and no longer maintained.
No replacement package was suggested.
html code generator
1.1.0
2015-11-24 19:56 UTC
Requires
- php: >=5.4.0
Requires (Dev)
- elnebuloso/flex-commons: ~3.0
- elnebuloso/flex-converter: ~3.0
- symfony/console: ~2.5
- zendframework/zend-code: ~2.5
- zendframework/zend-db: ~2.5
This package is not auto-updated.
Last update: 2022-02-19 04:14:13 UTC
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)