howlowck / html-builder
Installs: 25
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/howlowck/html-builder
Requires
- php: >=5.3.0
- howlowck/support: *
- illuminate/support: ~4
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();