PHPackages                             formbuilder/htmlformbuilder - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. formbuilder/htmlformbuilder

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

formbuilder/htmlformbuilder
===========================

A Simple HTML Form Builder

07HTML

Since May 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/xcshanto/laravel-html-form-builder)[ Packagist](https://packagist.org/packages/formbuilder/htmlformbuilder)[ RSS](/packages/formbuilder-htmlformbuilder/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#introduction)

This project's goal is to make a simple form builder package, which will have only four types of input: (i) text, (ii)Checkbox, (iii)radio, (iv) dropdown. This package can pass style(s), value(s) and type to the helpers.

Form Builder
------------

[](#form-builder)

### Installation

[](#installation)

Require this package with composer.

```
    composer require formbuilder/htmlformbuilder

```

#### Laravel 5.5+:

[](#laravel-55)

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

```
formBuilder\htmlFormBuilder\htmlFormBuilderServiceProvider::class,

```

##### Input tag:

[](#input-tag)

We will be using this template as follows

```
@include('htmlFormBuilder::input', ['data'=>$dataUsername])

```

Where data is a key value array in the following structure:

```
$dataUsername = [
    'ids' => ['username'],
    'classes' => ['form-control'],
    'type' => 'text',
    'name' => 'username',
    'values' => [
        'prev_value' => 'xyz'
    ],
    'required' => true
];

```

##### Select tag:

[](#select-tag)

We will be using this template as follows

```
@include(“'htmlFormBuilder::select”, [“data” => $data])

```

Where data is a key value array in the following structure:

```
$dataSelect = [
    'ids' => ['select'],
    'classes' => ['custom-select mr-sm-10'],
    'name' => 'select',
    'type' => 'select',
    'values' => [
        'value1' => 'front-end',
        'value2' => 'back-end',
        'value3' => 'DBAdmin'
    ],
    'active' => 'value2',
    'required' => true
];

```

In the case of the active value being “null”, a default value will be generated and will be at the top of the options list, otherwise the “active” value will be placed at the top of the options list.

##### Radio

[](#radio)

We will be using this template as follows

```
@include('htmlFormBuilder::radio', ['data'=>$dataRadio])

```

Where data is a key value array in the following structure:

```
$dataRadio = [
    'ids' => ['radio'],
    'classes' => [''],
    'name' => 'radio',
    'values' => [
        'value1' => '10:00 AM - 06:00PM',
        'value2' => '11:00 AM - 07:00PM'
    ],
    'active' => null,
    'required' => true
];

```

In the case of the active value not being “null”, the active value has to be selected.

##### Checkbox

[](#checkbox)

We will be using this template as follows

```
@include('htmlFormBuilder::checkbox', ['data'=>$dataCheckBox])

```

Where data is a key value array in the following structure:

```
$dataCheckBox = [
    'ids' => ['checkbox'],
    'classes' => [''],
    'name' => 'checkbox',
    'values' => [
        'value1' => '06-05-2019',
        'value2' => '07-05-2019'
    ],
    'required' => true
];

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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/35435585327b5c1f8508d71ef26aab891301cb7b202a372c118e8c104ba5aa90?d=identicon)[xcshanto](/maintainers/xcshanto)

---

Top Contributors

[![ManisTakaur](https://avatars.githubusercontent.com/u/25609501?v=4)](https://github.com/ManisTakaur "ManisTakaur (7 commits)")

### Embed Badge

![Health badge](/badges/formbuilder-htmlformbuilder/health.svg)

```
[![Health](https://phpackages.com/badges/formbuilder-htmlformbuilder/health.svg)](https://phpackages.com/packages/formbuilder-htmlformbuilder)
```

PHPackages © 2026

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