There is no license information available for the latest version (0.0.1) of this package.

A package to create clean HTML

0.0.1 2015-03-07 14:14 UTC

This package is auto-updated.

Last update: 2021-02-09 05:36:31 UTC


A package to create clean HTML


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);

Which will echo

  <li>item 1</li>
  <li>item 2</li>
  <li>item 3</li>


Tag structure taken from [/u/brianjenkins94