PHPackages                             plokko/form-helper - 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. plokko/form-helper

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

plokko/form-helper
==================

0.2.1(4y ago)262PHP

Since Jun 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/plokko/form-helper)[ Packagist](https://packagist.org/packages/plokko/form-helper)[ RSS](/packages/plokko-form-helper/feed)WikiDiscussions master Synced today

READMEChangelog (4)DependenciesVersions (6)Used By (0)

Form helper
===========

[](#form-helper)

Laravel form helper; automatically generate AJAX forms, validations and much more all with a single fluent and fully customizable definition.

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

[](#installation)

Install it with composer `composer require plokko/form-helper`

To use the Vue component add it in your main `app.js` file by directly referencing it:

```
//...
Vue.component('form-helper', require('../../vendor/plokko/form-helper/resources/components/FormHelper').default);
```

Or by referencing the published component:

publish the Vue components with `php artisan vendor:publish --provider="Plokko\FormHelper\FormHelperServiceProvider" --tag=components` then add it to your `app.js` file:

```
//...
Vue.component('form-helper', require('./vendor/plokko/form-helper/FormHelper').default);
```

Use
---

[](#use)

Define your form in the controller

```
//...
use Plokko\FormHelper\FormHelper;

class TestController extends Controller
{
    //...
    public function example(Request $request){
        $form = new FormHelper();
        //Just an example model as data source
        $data = User::first();

        $form
            // Fill field values
            ->fill($data)
            // Specify form action and method
            ->action(route('users.edit',1),'patch')

            // Field definition:
            ->field('name')
                ->required(true)
                ->min(3)
                ->label('User name')
                //All the field with a prepending ":" will be evaluated as Javascript, usefull for defining functions
                ->attr(':rule','[v=>!!v || "Campo richiesto",v=> (!!v && v.length>=3)|| "Lunghezza minima 3ch"]')

            ->field('email')
                ->type('email')
                ->label('E-mail')
                ->required(true)

            ->field('password')
                ->type('password')
                ->label('Password')
                ->attr('min',3)

            ->field('filetest')
                ->type('file')
                ->label('File upload')

            //Redefine all the field labels using the specified translation array;
            // for example the trans id "users.fields.name" will be assigned as a label to "name"
            ->labelsFromTrans('users.fields')
            ;

        return view('your.blade.file',compact('form'));
    }
}
```

Then use the defined form in your blade file:

```

    {{ $form->render() }}

    renderFormAttr() }}
        @submit="onSubmit"
        @error="onError"
        >
        @verbatim

                {{field.label}}

                {{field.label}}

        @endverbatim

```

Continue to the [wiki](https://github.com/plokko/form-helper/wiki) for additional informations

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

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 ~2 days

Total

5

Last Release

1796d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/755cf9f83a0a5af9141085f8961276809fc04356f3aee061ac7b72723a4e6290?d=identicon)[plokko](/maintainers/plokko)

---

Tags

laravelhelperformvue

### Embed Badge

![Health badge](/badges/plokko-form-helper/health.svg)

```
[![Health](https://phpackages.com/badges/plokko-form-helper/health.svg)](https://phpackages.com/packages/plokko-form-helper)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M683](/packages/barryvdh-laravel-ide-helper)[anahkiasen/former

A powerful form builder

1.4k1.4M14](/packages/anahkiasen-former)

PHPackages © 2026

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