PHPackages                             howlowck/html-builder - 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. howlowck/html-builder

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

howlowck/html-builder
=====================

025PHP

Since Jan 8Pushed 12y ago1 watchersCompare

[ Source](https://github.com/howlowck/HtmlBuilder)[ Packagist](https://packagist.org/packages/howlowck/html-builder)[ RSS](/packages/howlowck-html-builder/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

HTML Builder [![Build Status](https://camo.githubusercontent.com/694424171b732f81bf80999a444a4c25a8a359f6bee2d74eec848a09ed30fb7e/68747470733a2f2f7472617669732d63692e6f72672f686f776c6f77636b2f48746d6c4275696c6465722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/howlowck/HtmlBuilder)
========================================================================================================================================================================================================================================================================================================

[](#html-builder-)

Include the Builder
-------------------

[](#include-the-builder)

`use Howlowck\HtmlBuilder\Element;`

Create Element
--------------

[](#create-element)

`$form = new Element('form');`

Add/Set Content
---------------

[](#addset-content)

You can add a string. `$form->addContent('welcome!') `

Or another element

```
$firstName = new Element('input');
$form->addContent($firstName);

```

Add/Set Attributes
------------------

[](#addset-attributes)

You can set attributes or properties. The order is the order you add them.

```
$first_name->addAttribute('required');
$first_name->addAttribute(array('id'=>'first_name'));

```

Get HTML
--------

[](#get-html)

```
$form->getHtml();

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e08f9bb8228edf1f01ccb4bbccdf8e52ade99b66cbfb538e6df844bdc74a4569?d=identicon)[howlowck](/maintainers/howlowck)

---

Top Contributors

[![howlowck](https://avatars.githubusercontent.com/u/338265?v=4)](https://github.com/howlowck "howlowck (9 commits)")

### Embed Badge

![Health badge](/badges/howlowck-html-builder/health.svg)

```
[![Health](https://phpackages.com/badges/howlowck-html-builder/health.svg)](https://phpackages.com/packages/howlowck-html-builder)
```

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3851.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.1k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

282.2k](/packages/webkinder-sproutset)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
