PHPackages                             dcodegroup/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. dcodegroup/laravel-form-builder

ActiveLibrary

dcodegroup/laravel-form-builder
===============================

Simple package which dcode uses to manage form builder

0.0.1(1mo ago)0236↑246.7%MITPHPPHP ^8.2 || ^8.3 || ^8.4 || ^8.5CI passing

Since Jul 17Pushed 1mo agoCompare

[ Source](https://github.com/DCODE-GROUP/laravel-form-builder)[ Packagist](https://packagist.org/packages/dcodegroup/laravel-form-builder)[ GitHub Sponsors](https://github.com/:vendor_name)[ RSS](/packages/dcodegroup-laravel-form-builder/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Laravel Form Builder
====================

[](#laravel-form-builder)

Drag-and-drop form builder for Laravel + Vue 3. Define form schemas in an admin UI (`FormBuilder`), then render and collect submissions with `VForm`.

PackagePurpose`dcodegroup/laravel-form-builder`Laravel models, migrations, validation helpers`@dcodegroup-au/form-builder`Vue components and stylesRequirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 11, 12, or 13

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

[](#installation)

### Backend

[](#backend)

```
composer require dcodegroup/laravel-form-builder
php artisan form-builder:install
php artisan migrate
```

`form-builder:install` publishes the `create_forms_table` and `create_form_data_table` migrations when they are not already present.

### Frontend

[](#frontend)

```
npm install @dcodegroup-au/form-builder
```

---

Backend quick reference
-----------------------

[](#backend-quick-reference)

### Backend models &amp; traits

[](#backend-models--traits)

#### `Form`

[](#form)

Stores the form definition (`title`, `recipients`, `status`, `published_at`, `fields`).

```
use Dcodegroup\FormBuilder\Models\Form;

$form = Form::saveModel([
    'title' => 'Onboarding',
    'status' => 'published',
    'fields' => $request->input('data.fields'),
]);
```

#### `FormData`

[](#formdata)

Stores a filled submission (`values`, `completed_at`) morph-linked to any model via `formable`, and related to a `Form`.

#### `HasFilledForms`

[](#hasfilledforms)

Add to any Eloquent model that can have filled forms:

```
use Dcodegroup\FormBuilder\Models\Traits\HasFilledForms;

class Job extends Model
{
    use HasFilledForms;
}

// Latest (or create) submission for a form
$formData = $job->getFormData($form, createNew: true);

// Persist values
$job->saveFormData($form, $values);
```

#### `FormValidator`

[](#formvalidator)

Use on a Form Request to build rules from required fields in the schema:

```
use Dcodegroup\FormBuilder\Http\Traits\FormValidator;
use Illuminate\Foundation\Http\FormRequest;

class StoreFormSubmissionRequest extends FormRequest
{
    use FormValidator;

    public function rules(): array
    {
        return $this->getRules([
            // extra static rules...
        ]);
    }

    public function messages(): array
    {
        return $this->getRules([], isMessage: true);
    }
}
```

Rules are derived from `route('form')?->fields` when present, otherwise from `request()->input('data.fields')`.

---

Database
--------

[](#database)

**`forms`**

ColumnNotes`title`Form name`recipients`JSON (notification emails)`status`e.g. draft / published`published_at`Set when published`fields`JSON schema**`form_data`**

ColumnNotes`formable_type` / `formable_id`Morph to the owning model`form_id`Related `forms` row`values`JSON answers`completed_at`Nullable completion timestamp---

Testing
-------

[](#testing)

Run package tests (if provided):

```
composer test
```

Contributing
------------

[](#contributing)

Contributions are welcome. Please open issues or pull requests and follow repository conventions.

License
-------

[](#license)

MIT — see LICENSE.md for details.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance90

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

46d ago

### Community

Maintainers

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

---

Top Contributors

[![TungDcode](https://avatars.githubusercontent.com/u/75203313?v=4)](https://github.com/TungDcode "TungDcode (8 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laraveldataformform-builder

###  Code Quality

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[laravel/octane

Supercharge your Laravel application's performance.

4.0k30.7M287](/packages/laravel-octane)[statamic/cms

The Statamic CMS Core Package

4.9k3.9M1.2k](/packages/statamic-cms)[unopim/unopim

UnoPim Laravel PIM

10.9k2.6k](/packages/unopim-unopim)[typicms/base

A modular multilingual CMS built with Laravel, enabling developers to manage structured content like pages, news, events, and more.

1.6k20.4k](/packages/typicms-base)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21336.4k4](/packages/ecotone-laravel)[dcat-plus/laravel-admin

dcat-plus admin

1494.6k11](/packages/dcat-plus-laravel-admin)

PHPackages © 2026

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