rocketphp / html
Object oriented HTML generation.
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Language:HTML
Requires
- php: >=5.5
Requires (Dev)
- phpdocumentor/phpdocumentor: 2.*
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2024-11-13 10:55:27 UTC
README
RocketPHP\HTML
is a component for object oriented HTML generation.
To construct HTML – start with an instance of HTML and add tags by accessing the tag’s method on that object.
use RocketPHP\HTML\HTML; $h = new HTML(); $div = $h->div('id="foo" class="bar"'); $div->p('Hello, World!'); echo $h;
<div id="foo" class="bar"> <p> Hello, World! </p> </div>
- File issues at https://github.com/rocketphp/html/issues
- Documentation is at http://rocketphp.io/html