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

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

gustiawan/laravel-form-builder
==============================

Laravel Form Builder

1.6.0(2y ago)02.5k2PHPPHP &gt;=7.1CI failing

Since Feb 19Pushed 2y agoCompare

[ Source](https://github.com/agus24/laravel-form-builder)[ Packagist](https://packagist.org/packages/gustiawan/laravel-form-builder)[ RSS](/packages/gustiawan-laravel-form-builder/feed)WikiDiscussions master Synced 5d ago

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

laravel-form-builder
====================

[](#laravel-form-builder)

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

[](#installation)

`composer require gustiawan/laravel-form-builder`

run this command to publish package

`php artisan vendor:publish --provider="Gustiawan\FormBuilder\FormBuilderServiceProvider"`

configuration
-------------

[](#configuration)

change style to bootstrap if you want to use bootstrap styling

```
    /**
     * Set your default styling
     * the option is [tailwind, bootstrap]
     */
    "style" => "tailwind",
```

change this only if you want to use custom form template

```
    /**
     * Fill this with your view path
     */
    "form_template" => null
```

Usage
-----

[](#usage)

create form using

`php artisan make:form {name}`

the file is written in `App/Form`

add your form depends on your need

```
use Gustiawan\FormBuilder\Form;

class ExampleForm extends Form
{
    public function handle()
    {
        $this->text("textinput", "Text Input");
        $this->password("password", "Old Password");
        $this->textArea("text area", "Text Area", "Default Value");
        $this->date("example_date", "Example Date");
        $this->radio("radio_example", "Radio Example", [1 => "Option one", 2 => "Option two"], ["value" => 1]); // default value
        $this->checkBox("checkbox_example", "Checkbox Example", [1 => "Option one", 2 => "Option two"], ["value" => [1, 2]]); // default value must be array
        $this->select("select_field", "Select Field Example", [1 => "Option one", 2 => "Option two"], ["value" => 1]); // default value
    }
}
```

then inside your controller

```
public function example()
{
    $form = new ExampleForm([
        "action" => route('example_routes'),
        "method" => "POST",
        // optional
        "data" => [
            "field_name" => "some value"
        ]
    ]);

    return view('example_view', compact('form'));
}
```

in your view

```

```

### field options

[](#field-options)

to add default value to the field

```
$this->text("textinput", "Text Input", ["value" => "some value"]);
```

to make field is required field

```
$this->text("textinput", "Text Input", ["required" => true]);
```

to make field readonly

```
$this->text("textinput", "Text Input", ["readonly" => true]);
```

to make field disabled

```
$this->text("textinput", "Text Input", ["disabled" => true]);
```

to add custom class to the inputs

```
$this->text("textinput", "Text Input", ["class" => "datetimepicker"]);
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93% 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 ~39 days

Recently: every ~182 days

Total

25

Last Release

969d ago

### Community

Maintainers

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

---

Top Contributors

[![agus24](https://avatars.githubusercontent.com/u/23353234?v=4)](https://github.com/agus24 "agus24 (40 commits)")[![azizar](https://avatars.githubusercontent.com/u/30157422?v=4)](https://github.com/azizar "azizar (2 commits)")[![febriantho](https://avatars.githubusercontent.com/u/92046404?v=4)](https://github.com/febriantho "febriantho (1 commits)")

---

Tags

laravelbuilderform

### Embed Badge

![Health badge](/badges/gustiawan-laravel-form-builder/health.svg)

```
[![Health](https://phpackages.com/badges/gustiawan-laravel-form-builder/health.svg)](https://phpackages.com/packages/gustiawan-laravel-form-builder)
```

###  Alternatives

[kris/laravel-form-builder

Laravel form builder - symfony like

1.7k2.2M45](/packages/kris-laravel-form-builder)[akaunting/laravel-money

Currency formatting and conversion package for Laravel

7825.3M18](/packages/akaunting-laravel-money)[barryvdh/laravel-form-bridge

This packages integrates Symfony Form Component in Laravel.

163354.8k1](/packages/barryvdh-laravel-form-bridge)[lara-zeus/bolt

Zeus Bolt is form builder for your users, with so many use cases

23640.2k2](/packages/lara-zeus-bolt)[inkvizytor/fluentform

Form builder for Laravel

3416.2k](/packages/inkvizytor-fluentform)[laraform/laraform-laravel

Laraform Community Edition (Laravel)

1537.0k](/packages/laraform-laraform-laravel)

PHPackages © 2026

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