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 1w ago

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 30% 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

1941d 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

[mediconesystems/livewire-datatables

Advanced datatables using Laravel, Livewire, Tailwind CSS and Alpine JS

1.2k731.7k8](/packages/mediconesystems-livewire-datatables)[localheinz/diff

Fork of sebastian/diff for use with ergebnis/composer-normalize

4742.6M10](/packages/localheinz-diff)[recca0120/laravel-erd

Laravel ERD automatically generates Entity-Relationship Diagrams from your Laravel models and displays them using Vuerd.

363101.0k](/packages/recca0120-laravel-erd)[netresearch/config-fields-m2

A collection of custom config types for Magento 2 system configuration development.

11370.4k25](/packages/netresearch-config-fields-m2)[phptry/phptry

Try type for PHP

476.2k](/packages/phptry-phptry)[flarum/gdpr

Features for GDPR, PII management

1344.5k24](/packages/flarum-gdpr)

PHPackages © 2026

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