Object oriented HTML generation.

Installs: 22

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 1

Open Issues: 0

Language:HTML

pkg:composer/rocketphp/html

1.0.0 2015-09-01 18:30 UTC

This package is not auto-updated.

Last update: 2025-10-01 15:21:26 UTC


README

Build Status Coverage Status Dependency Status

Latest Stable Version License

This is a forkable respository

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>