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

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

livecontrol/form
================

Make form handling in Laravel simpler.

0127PHP

Since Jun 23Pushed 10y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Quick fix for Jeffrey Way's way/form package to make it compatible with LiveControls CMS and Laravel 5.
=======================================================================================================

[](#quick-fix-for-jeffrey-ways-wayform-package-to-make-it-compatible-with-livecontrols-cms-and-laravel-5)

not compatible with standalone laravel 5
----------------------------------------

[](#not-compatible-with-standalone-laravel-5)

The basic idea is simple: make form creation simpler.

[View a quick visual demonstration.](https://dl.dropboxusercontent.com/u/774859/GitHub-Repos/formfield-sample.mp4)

I'm tired of creating form fields, like this:

```

    {{  Form::label('username', 'Username:' ) }}
    {{ Form::text('username', null, ['class' => 'control-group']) }}

```

Instead, with this `FormField` class, you can simply do:

```
{{ FormField::username() }}
```

That will then produce the necessary (Bootstrap-friendly, by default) HTML. It uses dynamic methods to simplify the process a bit.

While it will do its best to figure out what kind of input you want, you can override it.

```
{{ FormField::yourBio(['type' => 'textarea']) }}
```

This will produce:

```

    Your Bio:

```

So, yeah, it's just a helper class. If your forms require a huge amount of customization, this probably won't work for you. But for simple forms, it'll do the trick nicely!

(It also makes Laracasts demos way easier to setup. :)

Usage
-----

[](#usage)

To try this out:

Begin by installing the package through Composer.

```
require: {
    "livecontrol/form": "dev-master"
}
```

Next, add the service provider to `app/config/app.php`.

```
'providers' => [
    // ..
    'Way\Form\FormServiceProvider'
]
```

That's it! You're all set to go. Try it out in a view:

```
{{ FormField::username() }}
{{ FormField::email() }}
{{ FormField::custom(['type' => 'textarea']) }}
{{ FormField::address(['label' => 'Your Address']) }}
```

That will produce the following. Though it's Twitter Bootstrap friendly by default, you can of course customize the class names as you wish.

[![output](https://camo.githubusercontent.com/30a7d6967c0544eaf0967dc375d4cd4c19ffab5d590de8c38a885b0a2074968c/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f3737343835392f4769744875622d5265706f732f666f726d6669656c642d73732e706e67)](https://camo.githubusercontent.com/30a7d6967c0544eaf0967dc375d4cd4c19ffab5d590de8c38a885b0a2074968c/68747470733a2f2f646c2e64726f70626f7875736572636f6e74656e742e636f6d2f752f3737343835392f4769744875622d5265706f732f666f726d6669656c642d73732e706e67)

If you want to override the defaults, you can publish the config, like so:

```
php artisan config:publish way/form

```

Now, access `app/config/packages/way/form/config.php` to customize. Here's what it lists by default:

```
return [

    /*
     * What should each form element be
     * wrapped within?
    */
    'wrapper' => 'div',

    /*
     * What class should the wrapper
     * element receive?
    */
    'wrapperClass' => 'form-group',

    /**
     * Should form inputs receive a class name?
     */
    'inputClass' => 'form-control',

    /**
     * Frequent input names can map
     * to their respective input types.
     *
     * This way, you may do FormField::description()
     * and it'll know to automatically set it as a textarea.
     * Otherwise, do FormField::thing(['type' => 'textarea'])
     *
     */
    'commonInputsLookup'  => [
        'email' => 'email',
        'emailAddress' => 'email',

        'description' => 'textarea',
        'bio' => 'textarea',
        'body' => 'textarea',

        'password' => 'password',
        'password_confirmation' => 'password'
    ]
];
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.3% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2203546?v=4)[Jeffrey de Vreede](/maintainers/jeffreydevreede)[@jeffreydevreede](https://github.com/jeffreydevreede)

---

Top Contributors

[![jeffreydevreede](https://avatars.githubusercontent.com/u/2203546?v=4)](https://github.com/jeffreydevreede "jeffreydevreede (9 commits)")[![JeffreyWay](https://avatars.githubusercontent.com/u/183223?v=4)](https://github.com/JeffreyWay "JeffreyWay (2 commits)")[![sdebacker](https://avatars.githubusercontent.com/u/134503?v=4)](https://github.com/sdebacker "sdebacker (2 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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