Skip to content

Thijzer/HtmlBuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple PHP Html component builder

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages