PHPackages                             luthfi/formfield - 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. luthfi/formfield

ActiveLibrary

luthfi/formfield
================

Laravel Form Field the extension of Laravelcollective Form for Laravel 5.3 and newer with Twitter Bootstrap 4.

3.1.0(1y ago)1625.6k↑52.9%11[5 PRs](https://github.com/nafiesl/FormField/pulls)MITPHPPHP ^8.1

Since Jan 21Pushed 1y ago3 watchersCompare

[ Source](https://github.com/nafiesl/FormField)[ Packagist](https://packagist.org/packages/luthfi/formfield)[ RSS](/packages/luthfi-formfield/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (50)Used By (0)

Laravel Boostrap Form Field
===========================

[](#laravel-boostrap-form-field)

[![StyleCI](https://camo.githubusercontent.com/84dd82c620c0f78068865f624eee0bfac62c43629754058d88fb1c6c75e72981/68747470733a2f2f7374796c6563692e696f2f7265706f732f37393634383133392f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/79648139)[![Build Status](https://camo.githubusercontent.com/7a2db38f5de7f4016e1ae21ad54eb22fd12a8b844560ebcc370ba8788916a08f/68747470733a2f2f7472617669732d63692e6f72672f6e61666965736c2f466f726d4669656c642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nafiesl/FormField)[![Total Downloads](https://camo.githubusercontent.com/a5eabfead7c1c8763376544a768b87d2d8e4a1e66b6139dffcc58a90599767a1/68747470733a2f2f706f7365722e707567782e6f72672f6c75746866692f666f726d6669656c642f646f776e6c6f616473)](https://packagist.org/packages/luthfi/formfield)

This package is the extension of Laravelcollective Form for Laravel 5 and newer with Twitter Bootstrap 3, 4 and 5 form fields wrapper.

How to install
--------------

[](#how-to-install)

##### For Bootstrap 5

[](#for-bootstrap-5)

If you are using Bootstrap 5, please use `3.*` version instead:

```
composer require luthfi/formfield 3.*
```

##### For Bootstrap 4

[](#for-bootstrap-4)

If you are using Bootstrap 4, please use `2.*` version instead:

```
composer require luthfi/formfield 2.*
```

##### For Bootstrap 3

[](#for-bootstrap-3)

If you are using Bootstrap 3, please use `1.*` version instead:

```
composer require luthfi/formfield 1.*
```

Install this package through [Composer](https://getcomposer.org). Run following from terminal:

```
composer require luthfi/formfield

```

##### For laravel 5.5 and newer

[](#for-laravel-55-and-newer)

> this package will auto discovered

##### For laravel 5.3 and 5.4

[](#for-laravel-53-and-54)

Update `config/app.php`, add provider and aliases :

```
// providers
Luthfi\FormField\FormFieldServiceProvider::class,

// aliases
'FormField' => Luthfi\FormField\FormFieldFacade::class,
'Form'      => Collective\Html\FormFacade::class,
'Html'      => Collective\Html\HtmlFacade::class,
```

How to use
----------

[](#how-to-use)

In your `blade` file, use this following sintax :

```
{!! FormField::text('name') !!}
```

will produce:

```

    Name

```

Or other example for Checkbox and Radios. We can use **numeric array** or **associative array** for Labels and Values :

```
{!! FormField::checkboxes('group', [1 => 'Admin', 'Member']) !!}
{!! FormField::radios('status', ['a' => 'Active', 'b' => 'Inactive']) !!}
```

And they will produce :

```

    Group

            Admin

            Member

    Status

            Active

            Inactive

```

Avaliable Form Fields
---------------------

[](#avaliable-form-fields)

```
{!! FormField::open($options) !!}
{!! FormField::text('name') !!}
{!! FormField::textarea('field_name') !!}
{!! FormField::select('field_name', $options) !!}
{!! FormField::multiSelect('field_name', $options) !!}
{!! FormField::email('email_field') !!}
{!! FormField::password('password_field') !!}
{!! FormField::radios('status', ['a' => 'Active', 'b' => 'Inactive']) !!}
{!! FormField::checkboxes('group', [1 => 'Admin', 'Member']) !!}
{!! FormField::textDisplay('label', 'value_to_display') !!}
{!! FormField::file('file_field') !!}
{!! FormField::price('price_field') !!}
{!! FormField::close() !!}
```

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 94.4% 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 ~65 days

Recently: every ~386 days

Total

43

Last Release

643d ago

Major Versions

1.0.5 → 2.0.52019-03-12

1.0.9 → 2.0.72019-09-04

1.1.0 → 2.1.02020-05-10

1.x-dev → 2.2.02021-03-20

2.2.0 → 3.0.02023-10-14

PHP version history (4 changes)0.2.0PHP &gt;=7.0

0.2.4PHP &gt;=5.6.4

1.1.0PHP &gt;=7.2

3.1.0PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![nafiesl](https://avatars.githubusercontent.com/u/8721551?v=4)](https://github.com/nafiesl "nafiesl (117 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")

---

Tags

bootstrapformlaravellaravelcollective-htmlpackage

### Embed Badge

![Health badge](/badges/luthfi-formfield/health.svg)

```
[![Health](https://phpackages.com/badges/luthfi-formfield/health.svg)](https://phpackages.com/packages/luthfi-formfield)
```

###  Alternatives

[konekt/appshell

Foundation for Laravel business applications

8257.1k2](/packages/konekt-appshell)[takielias/tablar-crud-generator

Laravel Tablar Crud Generator based on https://github.com/takielias/tablar

315.6k](/packages/takielias-tablar-crud-generator)

PHPackages © 2026

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