PHPackages                             nicklayb/htmlbuilder - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. nicklayb/htmlbuilder

ActiveLibrary[Templating &amp; Views](/categories/templating)

nicklayb/htmlbuilder
====================

Useful helper to build server side html with tag chaining creation and templates for things like Bootstrap.

0490PHP

Since Sep 15Pushed 9y agoCompare

[ Source](https://github.com/nicklayb/htmlbuilder)[ Packagist](https://packagist.org/packages/nicklayb/htmlbuilder)[ RSS](/packages/nicklayb-htmlbuilder/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

HtmlBuilder
===========

[](#htmlbuilder)

Useful helper for builder HTML entities with php

You should not use this to build full DOM et full pages since it mays get harder to load than pure HTML, however it ensure a correct HTML syntax and some friendly tools for creating tags.

A use case example would be outputting an edit button to a datatable.

Introduction
------------

[](#introduction)

Install it via composer

```
composer require nicklayb/htmlbuilder

```

### Creating simple DOM element

[](#creating-simple-dom-element)

For example, if you would like to create a `input` of type `text` with name `my_input` and classes `super-input` and `holy-input`, you could do it that way.

```
