Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 610 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 610 Bytes

HtmlBuilder

Goals

This Repo is meant to making dynamic html elements easier. Most of the known component should be available as a set.

Making it possible to build menu, datagrid, table component as objects in PHP. And pass them as to you template engine.

Example

$table = new \HtmlBuilder\Table();
$table->setData($dataSet);
$table
    ->add('#', 'rowcount')
    ->add('title')
    ->add('status_code')
    ->add('h1_count')
    ->add('frequency')
    ->add('links_text', 'arrayCount')
    ->add('visited', 'boolean')
    ->add('absolute_url', 'link')
;
$table->render()