2017 © Pedro Peláez
 

library html-builder

image

howlowck/html-builder

  • Wednesday, January 8, 2014
  • by howlowck
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

HTML Builder Build Status

Include the Builder

use Howlowck\HtmlBuilder\Element;, (*1)

Create Element

$form = new Element('form');, (*2)

Add/Set Content

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

Or another element, (*4)

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

Add/Set Attributes

You can set attributes or properties. The order is the order you add them., (*5)

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

Get HTML

$form->getHtml();

The Versions

08/01 2014

dev-master

9999999-dev

  Sources   Download

The Requires