PHPackages                             mwi/laravel-forms - 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. [Templating &amp; Views](/categories/templating)
4. /
5. mwi/laravel-forms

ActiveLibrary[Templating &amp; Views](/categories/templating)

mwi/laravel-forms
=================

MWI Starter Forms extends Laravel Collective HTML

v2.0.0(5y ago)112.6kMITBlade

Since Jan 24Pushed 5y agoCompare

[ Source](https://github.com/MidwesternInteractive/laravel-forms)[ Packagist](https://packagist.org/packages/mwi/laravel-forms)[ RSS](/packages/mwi-laravel-forms/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (5)Used By (0)

MWI Laravel Forms
=================

[](#mwi-laravel-forms)

MWI Laravel froms is an extension of [Laravel Collective Forms &amp; HTML](https://laravelcollective.com/docs/master/html). It utilized components to build out bootsrap ready form inputs with [parsley](http://parsleyjs.org/) client side validation and select2 funcionality.

Installation
============

[](#installation)

```
$ composer require mwi/laravel-forms
```

Service Provider
----------------

[](#service-provider)

If you're on laravel 5.5 or later the service provider will be automatially loaded, if not, add to your `config/app.php` providers

```
'providers' => [
    // ...
    MWI\LaravelForms\ServiceProvider::class,
    // ...
],
```

### HTML Service Provider

[](#html-service-provider)

You will also need to add the Laravel Collection provider if you haven't already

```
'providers' => [
    // ...
    Collective\Html\HtmlServiceProvider::class,
    // ...
],
```

HTML Aliases
------------

[](#html-aliases)

If you have't already you can add Laravel Collective HTML aliases

```
'aliases' => [
    // ...
    'Form' => Collective\Html\FormFacade::class,
    'Html' => Collective\Html\HtmlFacade::class,
    // ...
],
```

Publish
-------

[](#publish)

Last but not least be sure to publish

```
php artisan vendor:publish --provider="MWI\LaravelForms\ServiceProvider"
```

Usage
=====

[](#usage)

Here are the current tags available and how to best utilize them.

Text Field
----------

[](#text-field)

Only the first parameter is required.

Variations available are `mwitext`, `mwitextarea`, `mwidate`, `mwidaterange`, `mwiemail`, `mwipass` and `mwinumber`.

```
Form::mwitext('field_name')
Form::mwitext('field_name_two', $default_value, ['class' => 'class-name'], 'Custom Label')

// No default value with attributes
Form::mwitext('name', null, ['class' => 'class-name'])
```

Radio Options
-------------

[](#radio-options)

```
Form::mwiradio('Set Label', 'field_name', ['option_one', 'option_two'], 'option_one', ['class' => 'class-name'])
```

Select Field
------------

[](#select-field)

Variations available are `mwiselect` and `mwifilter`.

```
Form::mwiselect('field_name', $options)
Form::mwiselect('field_name_two', ['this' => 'that', 'them' => 'they'], $default_value, ['class' => 'class-name'])

// No default value with attributes
Form::mwiselect('state', $options, null, ['class' => 'class-name'])
```

Structure
---------

[](#structure)

All tags are wrapped in a `div.form-group` and contain a label, input and error message container. It's recommended to additionally wrap elements in rows/grids as follows.

```

        {{ Form::mwitext('field_name', $field_value, $attributes) }}

        {{ Form::mwitext('field2_name', $field2_value, ['required', 'class' => 'text-red']) }}

```

Additionaly the password field already contains col-6 grids, so...

```

    {{ Form::mwipass('password', ['required']) }}

```

Would produce...

```

            {{ Form::label('password', null, ['class' => 'control-label']) }}
            {{ Form::password('password', ['class' => 'form-control', 'id' => 'password', 'required']) }}
            {{ $errors->first('password') }}

            {{ Form::label('password_confirmation', null, ['class' => 'control-label']) }}
            {{ Form::password('password_confirmation' . '_confirmation', ['class' => 'form-control']) }}
            {{ $errors->first('password_confirmation') }}

```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 92.9% 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 ~336 days

Total

4

Last Release

2069d ago

Major Versions

v1.0.2 → v2.0.02020-10-30

### Community

Maintainers

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

---

Top Contributors

[![ryandoss](https://avatars.githubusercontent.com/u/575173?v=4)](https://github.com/ryandoss "ryandoss (13 commits)")[![MidwesternInteractive](https://avatars.githubusercontent.com/u/30080874?v=4)](https://github.com/MidwesternInteractive "MidwesternInteractive (1 commits)")

---

Tags

laravelForms

### Embed Badge

![Health badge](/badges/mwi-laravel-forms/health.svg)

```
[![Health](https://phpackages.com/badges/mwi-laravel-forms/health.svg)](https://phpackages.com/packages/mwi-laravel-forms)
```

###  Alternatives

[glhd/aire

Modern Laravel form builder. Remembers old input, retrieves error messages and comes with beautiful Tailwind-based markup out of the box.

545277.1k8](/packages/glhd-aire)[tanthammar/tall-forms

A dynamic, responsive Laravel Livewire form generator with realtime validation, file uploads, array fields, and more.

68038.4k1](/packages/tanthammar-tall-forms)[codewithdennis/filament-advanced-choice

Beautiful, customizable radio and checkbox form layouts for FilamentPHP.

1022.4k3](/packages/codewithdennis-filament-advanced-choice)

PHPackages © 2026

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