PHPackages                             jray/formbuilder - 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. jray/formbuilder

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

jray/formbuilder
================

This is a simple html form builder

v1.0.0(4y ago)012MITPHP

Since Sep 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/jogashray/formbuilder-package)[ Packagist](https://packagist.org/packages/jray/formbuilder)[ RSS](/packages/jray-formbuilder/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Simple HTML Form Builder Laravel Package
----------------------------------------

[](#simple-html-form-builder-laravel-package)

Form Builder is created by Jogash Ray. It is developed to minimize the HTML form input field info. It is supported only four types of input field such as - text, select ( For dropdown), radio &amp; checkbox.

Installation
------------

[](#installation)

Laravel FormMaker requires PHP 7+. This particular version supports Laravel 5.3 ++

To get the latest version you need only require the package via Composer.

```
composer require jray/formbuilder

```

Configuration
-------------

[](#configuration)

To register the server provider, simply add it to the array in config/app.php file

```
'providers' => [
    // Other Service Providers

    Jray\Formbuilder\FormBuilderServiceProvider::class,
]

```

You also need to add aliases in config/app.php file

```
'aliases' => [

            'FormBuilder' => Jray\Formbuilder\Facades\Formbuilder::class,
            ]

```

Usage
-----

[](#usage)

Call the input($param) method of FormBuilder facade in your blade template.

```
{!! FormBuilder::input($param) !!}
Where, $param = [
            'name' => 'first_name',  //Optional
            'id' => 'first_name',  //Optional
            'type' => 'text',    // Required
            'class' => ' class1, class2, class2 '  // Optional,
            'value' => 'test name',  // Optional
            **
            **
            **
            ]
      $param must be an associative array & $param['type'] is required.

```

### Text Field

[](#text-field)

```
            $param = [
                  'name' => 'surname',  // String
                  'id' => 'surname-id',  // String
                  'type' => 'text',
                  'class' => 'class1, class2, class3 ...... classN', // String data, multiple class must be declared in comma-seperated
                  'value' => 'Test surname', // String
                  'required' => true or false, // Bool type
                  'custom-data' => 'this is meta info', // String data
            ];

```

### Select Field (DropDown option)

[](#select-field-dropdown-option)

```
            $param = [
                  'name' => 'surname',  // String
                  'id' => 'surname-id',  // String
                  'type' => 'select',
                  'class' => 'class1, class2, class3 ...... classN', // String data, multiple class must be declared in comma-seperated
                  'value' => [                   // associative array format [key-pair]
                        'option1' => 'option1',
                        'option2' => 'option2',
                        'option3' => 'option3',
                        'option4' => 'option4',
                  ],
                  'selected' => 'option2',  // Default Select option if you need  //optional
                  'required' => true or false, // Bool type
                  'custom-data' => 'this is meta info', // String data
            ];

```

### Checkbox Field

[](#checkbox-field)

```
            $param1 = [
                  'name' => 'test-checkbox',  // String
                  'type' => 'checkbox',  // String
                  'class' => 'class1, class2, class3 ...... classN', // String data, multiple class must be declared in comma-seperated
                  'value' => 'Test check box 1', // String
                  'checked' => true or false, // Bool type
                  'custom-data' => 'this is meta info', // String data

            ];
            $param2 = [
                  'name' => 'test-checkbox',  // String
                  'type' => 'checkbox',   // String
                  'class' => 'class1, class2, class3 ...... classN', // String data, multiple class must be declared in comma-seperated
                  'value' => 'Test check box 2', // String
                  'custom-data' => 'this is meta info', // String data
                  'disabled' => true or false // bool type

            ];

            {!! FormBuilder::input($param1) !!}
            {!! FormBuilder::input($param2) !!}

```

### Radio Field

[](#radio-field)

```
            $param1 = [
                  'name' => 'test-radio',  // String
                  'type' => 'radio',  // String
                  'class' => 'class1, class2, class3 ...... classN', // String data, multiple class must be declared in comma-seperated
                  'value' => 'Test radio 1', // String
                  'checked' => true or false, // Bool type
                  'custom-data' => 'this is meta info', // String data

            ];
            $param2 = [
                  'name' => 'test-radio',  // String
                  'type' => 'radio',   // String
                  'class' => 'class1, class2, class3 ...... classN', // String data, multiple class must be declared in comma-seperated
                  'value' => 'Test radio 2', // String
                  'custom-data' => 'this is meta info', // String data
                  'disabled' => true or false // bool type

            ];

            {!! FormBuilder::input($param1) !!}
            {!! FormBuilder::input($param2) !!}

```

Example :
---------

[](#example-)

Create a welcome.blade.php file in the resouces/views folder - Same as

```

        Bootstrap Example

            body{
                margin: 0px;
                padding: 0px;
            }

        Simple Form Builder Laravel Package

        @php
            $text_data = [
                'id' => 'my_id',
                'class' => 'form-control, class2, class3,form-control, primary, input-lg',
                'type' => 'text',
                'value' => '100',
                'required' => true

            ];

            // For select element, value must in associative_array format ['option_value' => 'option']
            $option_data = [
                'id' => 'select_option_id',
                'class' => 'form-control',
                'type' => 'select',
                'value' => [
                    'option1' => 'option1',
                    'option2' => 'option2',
                    'option3' => 'option3',
                    'option4' => 'option4',
                    ],
                'required' => true,
                'selected' => 'option3'
            ];

            // For checkbox field
            $checkbox_data1 = [
                'name' => 'check_box',
                'class' => '',
                'type' => 'checkbox',
                'value' => 'checkbox1',
            ];
            $checkbox_data2 = [
                'name' => 'check_box',
                'class' => '',
                'type' => 'checkbox',
                'value' => 'checkbox1',
            ];
            $checkbox_data3 = [
                'name' => 'check_box',
                'class' => '',
                'type' => 'checkbox',
                'value' => 'checkbox1',
                'checked' => true
            ];
            // For Radio field
            $radio_data1 = [
                'name' => 'radio_field',
                'class' => '',
                'type' => 'radio',
                'value' => 'radio_val',
            ];
            $radio_data2 = [
                'name' => 'radio_field',
                'class' => '',
                'type' => 'radio',
                'value' => 'radio_val',
            ];
            $radio_data3 = [
                'name' => 'radio_field',
                'class' => '',
                'type' => 'radio',
                'value' => 'radio_val',
                'checked' => true
            ];
        @endphp
        Text Input Field:
        {!! FormBuilder::input($text_data) !!}

        Select Field:
        {!! FormBuilder::input($option_data) !!}

        Checkbox Field:
          {!! FormBuilder::input($checkbox_data1) !!} Checkbox 1
          {!! FormBuilder::input($checkbox_data2) !!} Checkbox 2
          {!! FormBuilder::input($checkbox_data3) !!} Checkbox 3

        Radio Field:
          {!! FormBuilder::input($radio_data1) !!} Radio 1
          {!! FormBuilder::input($radio_data2) !!} Radio 2
          {!! FormBuilder::input($radio_data3) !!} Radio 3

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1715d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/72186255?v=4)[Jogash Ray](/maintainers/jogashray)[@jogashray](https://github.com/jogashray)

---

Top Contributors

[![jogashray](https://avatars.githubusercontent.com/u/72186255?v=4)](https://github.com/jogashray "jogashray (5 commits)")

### Embed Badge

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

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

###  Alternatives

[lochmueller/seocli

SEO CLI Tool

1113.4k](/packages/lochmueller-seocli)[georgringer/faker

Faker for TYPO3

165.1k](/packages/georgringer-faker)

PHPackages © 2026

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