PHPackages                             mashfiqdev/form\_maker - 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. mashfiqdev/form\_maker

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

mashfiqdev/form\_maker
======================

This package helps you to make your desired form. You can pass values, types, id, styles to the helpers.

v1.0.2(5y ago)010MITBlade

Since Apr 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Mashfiqur/Laravel-Form-Maker)[ Packagist](https://packagist.org/packages/mashfiqdev/form_maker)[ RSS](/packages/mashfiqdev-form-maker/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

Laravel Form Maker
==================

[](#laravel-form-maker)

Form maker for Laravel inspired by Laravel form builder. With the help of Form Maker views, forms can be modified and reused easily. You can pass style, values, types to the helpers.

Features
--------

[](#features)

- Style - Pass style to the helper to customize element
- Value - Pass value to the helper to get the data from the particular field
- Type - Set the type of the input field such as email, number, tel etc.
- Active - Active the desired radio button or select field.
- Required - Handle the required field of the form

Requirements
------------

[](#requirements)

- [PHP &gt;= 7.0](http://php.net/)
- [Laravel 5.x|6|7|8](https://github.com/laravel/framework)

Quick Installation
------------------

[](#quick-installation)

Via Composer

```
$ composer require mashfiqdev/form_maker
```

### For Laravel version &lt; 5.5

[](#for-laravel-version--55)

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

```
\MashfiqDev\FormMaker\FormMakerServiceProvider::class,
```

Usage
-----

[](#usage)

You can use this in your blade file to make your form.

### For Input Element

[](#for-input-element)

You have to store the style containing classes, value, type, id, name in a variable like this:

```
$emaildata = [
    "ids" => ["email"],
    "classes" => ["form-control", "bg-light","my-2"],
    "type" => "email",
    "name" => "email",
    "values" => [
        "prev_value" => "mashfiqurrr@gmail.com"
    ],
    "required" => true
];
```

And include the HTML input element like this:

```

    Email
    @include('FormElement::input', ['data' => $emaildata])

```

### For Select Element

[](#for-select-element)

You have to store the style containing classes, value, id, name, active field, required status in a variable like this:

```
$countrydata = [
    "ids" => ["country"],
    "classes" => ["form-select", "bg-light","my-2"],
    "name" => "country",
    "values" => [
        "BD" => "Bangladesh",
        "AUS" => "Australia",
        "DU" => "Germany",
        "CN" => "Canada",
    ],
    "active" => "DU",
    "required" => true
];
```

And include the HTML input element like this:

```

    Country
    @include('FormElement::select', ['data' => $countrydata])

```

### For Checkbox Element

[](#for-checkbox-element)

You have to store the style containing classes, value, id, name, active field, required status in a variable like this:

```
$degreedata = [
    "ids" => ["degree"],
    "classes" => ["py-2", "bg-light","my-2","blockquote"],
    "name" => "degree",
    "values" => [
        "psc" => "P.S.C",
        "jsc" => "J.S.C",
        "ssc" => "S.S.C",
        "hsc" => "H.S.C",
        "bsc" => "B.S.C",
        "msc" => "M.S.C",
    ],
    "required" => true
];
```

And include the HTML input element like this:

```

    Degree
    @include('FormElement::checkbox', ['data' => $degreedata])

```

### For Radio Element

[](#for-radio-element)

You have to store the style containing classes, value, id, name, active field, required status in a variable like this:

```
$maritaldata = [
    "ids" => ["marital"],
    "classes" => ["form-check","form-check-inline", "bg-light","my-2","blockquote"],
    "name" => "marital",
    "values" => [
        "single" => "Single",
        "married" => "Married",
        "unmarried" => "Unmarried"
        ],
    "active" => "unmarried",
    "required" => true
];
```

And include the HTML input element like this:

```

    Marital Status
    @include('FormElement::radio', ['data' => $maritaldata])

```

### So, Your final form could be like this:

[](#so-your-final-form-could-be-like-this)

```

        Sign Up

                Email
                @include('FormElement::input', ['data' => $emaildata])

                Country
                @include('FormElement::select', ['data' => $countrydata])

                Degree
                @include('FormElement::checkbox', ['data' => $degreedata])

                Marital Status
                @include('FormElement::radio', ['data' => $maritaldata])

            Submit

```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Author
------

[](#author)

- [Md. Mashfiqur Rahman](https://github.com/Mashfiqur)

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~0 days

Total

3

Last Release

1896d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/mashfiqdev-form-maker/health.svg)

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

###  Alternatives

[mothership/state_machine

php implementation of state machine, completely configured by an external .yml file with the render of a graph's description

132.5k1](/packages/mothership-state-machine)

PHPackages © 2026

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