howlowck/html-builder

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

Fund package maintenance!
standard
feross

Installs: 25

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/howlowck/html-builder

dev-master 2014-01-08 22:37 UTC

This package is not auto-updated.

Last update: 2025-10-06 19:33:34 UTC


README

Include the Builder

use Howlowck\HtmlBuilder\Element;

Create Element

$form = new Element('form');

Add/Set Content

You can add a string. $form->addContent('welcome!')

Or another element

$firstName = new Element('input');
$form->addContent($firstName);

Add/Set Attributes

You can set attributes or properties. The order is the order you add them.

$first_name->addAttribute('required');
$first_name->addAttribute(array('id'=>'first_name'));

Get HTML

$form->getHtml();