Skip to content

Jamesthe1/html-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML Builder

This composer package creates a simple HTML builder for PHP.

API

The API can be found in the single builder.php file, as it contains detailed doc comments in the form of DocBlocks.

Example

$htmlroot = html_quick_setup("My website", "./favicon.ico", "./style.css");
$body = $htmlroot->get_child_by_tag("body"); // All objects are passed by reference.
$body->add_child(new html_element("p", "Hello world!", $attributes = [
    'class' = 'main-text',
    'id' = 'first-text'
]));

html_print($htmlroot);

About

A miniature HTML builder for PHP.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages