thijzer / html-builder
Simple PHP Html component builder
Installs: 45
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/thijzer/html-builder
Requires
- php: >=7.0.0
Requires (Dev)
- phpunit/phpunit: 5.5.*
This package is auto-updated.
Last update: 2025-10-15 04:27:18 UTC
README
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()