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

ActiveLibrary

qpdb/html-builder
=================

php Html builder

2.0.0(5y ago)0111MITPHPPHP &gt;=5.6CI failing

Since Feb 23Pushed 5y agoCompare

[ Source](https://github.com/adumitru68/HtmlBuilder)[ Packagist](https://packagist.org/packages/qpdb/html-builder)[ RSS](/packages/qpdb-html-builder/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (2)Versions (14)Used By (0)

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

[](#htmlbuilder)

**HtmlBuilder** is a user friendly php HtmlGenerator.

### Requirements

[](#requirements)

- Php 5.6+

### Installation

[](#installation)

```
composer require qpdb/html-builder

```

### How do we use?

[](#how-do-we-use)

```
$jobDeveloperOptions = [
	[
		'2.1' => 'PHP Developer',
		'2.2' => 'C++ Developer',
		'2.3' => 'Java Developer',
		'2.4' => 'JavaScript Developer',
	],
	Html::option()->label( 'Other languages' )->value( '2.9' )
];

$form = Html::form()->encTypeMultipart()->methodPost()
	->withHtmlElement(
		Html::label( 'Full name' )->for( 'full-name' ),
		Html::input()->text()->id( 'full-name' )->name( 'full_name' )->placeholder( 'Your full name' )->value( 'John Doe' ),
		Html::label( 'Your job' )->for( 'job' ),
		Html::select()->id( 'job' )->name('job')->withOptions(
			Html::option()->value( 0 )->label( 'Please select' ),
			Html::option()->value( 1 )->label( 'DevOps' ),
			Html::optgroup()->label('Software developer')->withOptions($jobDeveloperOptions),
			[3 => 'Web design', 4 => 'Game testing']
		)->selectValue( '2.1' ),
		Html::label('Job description')->for('job-description'),
		Html::textarea()->id('job-description')->name('job_description')
	);

Html::div()->withClass( 'class_1', 'class_2' )->id( 'container' )->withHtmlElement( $form )->render();
```

#### Generated html

[](#generated-html)

```

        Full name

        Your job

            Please select
            DevOps

                PHP Developer
                C++ Developer
                Java Developer
                JavaScript Developer
                Other languages

            Web design
            Game testing

        Job description

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 71.9% 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.

###  Release Activity

Cadence

Every ~43 days

Recently: every ~114 days

Total

12

Last Release

2167d ago

Major Versions

1.1.0 → 2.0.02020-06-07

### Community

Maintainers

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

---

Top Contributors

[![adumitru68](https://avatars.githubusercontent.com/u/28189119?v=4)](https://github.com/adumitru68 "adumitru68 (46 commits)")[![ioanszabo](https://avatars.githubusercontent.com/u/4104187?v=4)](https://github.com/ioanszabo "ioanszabo (18 commits)")

---

Tags

phphtmlbuilder

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[daandesmedt/phpheadlesschrome

A PHP wrapper for using Google Chrome Headless mode. Convert URL or HTML to a PDF / screenshot. Easy to use and OOP interfaced.

92233.1k](/packages/daandesmedt-phpheadlesschrome)[avplab/php-html-builder

PHP Html builder simplifies creation of an html code in php scripts. Allows to build (or generate) the html in simple natural way, similarly as create a html page.

189.2k](/packages/avplab-php-html-builder)[epic-64/elem

A fluent, type-safe PHP library for building HTML documents using the DOM

272.9k](/packages/epic-64-elem)

PHPackages © 2026

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