PHPackages                             mediactive-digital/laravel-form-builder - 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. mediactive-digital/laravel-form-builder

ActiveLibrary

mediactive-digital/laravel-form-builder
=======================================

Laravel form builder - symfony like

01.2k↓100%PHP

Since Apr 12Pushed 1y agoCompare

[ Source](https://github.com/mediactive-digital/laravel-form-builder)[ Packagist](https://packagist.org/packages/mediactive-digital/laravel-form-builder)[ RSS](/packages/mediactive-digital-laravel-form-builder/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/d89098e7438026324a1da7fc5884a2936a101e3eec91f9631507b11755312c6f/68747470733a2f2f7472617669732d63692e6f72672f6b72697374696a616e687573616b2f6c61726176656c2d666f726d2d6275696c6465722e737667)](https://travis-ci.org/kristijanhusak/laravel-form-builder)[![Coverage Status](https://camo.githubusercontent.com/f7feb039a98cdd1c34a443432357f9009b16ae55dc228e5d3afdec49dfe053f1/687474703a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6b72697374696a616e687573616b2f6c61726176656c2d666f726d2d6275696c6465722e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/kristijanhusak/laravel-form-builder/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/c368050f3726760ff01173e168f9dcdf5efbd6bf0788b05bc55553e1ff6830d9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b7269732f6c61726176656c2d666f726d2d6275696c6465722e7376673f7374796c653d666c6174)](https://packagist.org/packages/kris/laravel-form-builder)[![Latest Stable Version](https://camo.githubusercontent.com/51b1b8420813d3fa2f6e10ff61f80351caf9aa675cea5b499e6e13f917ab0c8b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b7269732f6c61726176656c2d666f726d2d6275696c6465722e7376673f7374796c653d666c6174)](https://packagist.org/packages/kris/laravel-form-builder)[![License](https://camo.githubusercontent.com/f251623e510f5909f16ae3f4e6e548dac11340b9fde1a99be26b015b39272c00/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c6174)](LICENSE)

Laravel 5 form builder
======================

[](#laravel-5-form-builder)

[![Join the chat at https://gitter.im/kristijanhusak/laravel-form-builder](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/kristijanhusak/laravel-form-builder?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Form builder for Laravel 5 inspired by Symfony's form builder. With help of Laravels FormBuilder class creates forms that can be easy modified and reused. By default it supports Bootstrap 3.

Laravel 4
---------

[](#laravel-4)

For Laravel 4 version check [laravel4-form-builder](https://github.com/kristijanhusak/laravel4-form-builder).

Bootstrap 4 support
-------------------

[](#bootstrap-4-support)

To use bootstrap 4 instead of bootstrap 3, install [laravel-form-builder-bs4](https://github.com/ycs77/laravel-form-builder-bs4).

Upgrade to 1.6
--------------

[](#upgrade-to-16)

If you upgraded to `>1.6.*` from `1.5.*` or earlier, and having problems with form value binding, rename `default_value` to `value`.

More info in [changelog](https://github.com/kristijanhusak/laravel-form-builder/blob/master/CHANGELOG.md).

Documentation
-------------

[](#documentation)

For detailed documentation refer to .

Changelog
---------

[](#changelog)

Changelog can be found [here](https://github.com/kristijanhusak/laravel-form-builder/blob/master/CHANGELOG.md).

Installation
------------

[](#installation)

### Using Composer

[](#using-composer)

```
composer require kris/laravel-form-builder
```

Or manually by modifying `composer.json` file:

```
{
    "require": {
        "kris/laravel-form-builder": "1.*"
    }
}
```

And run `composer install`

Then add Service provider to `config/app.php`

```
    'providers' => [
        // ...
        Kris\LaravelFormBuilder\FormBuilderServiceProvider::class
    ]
```

And Facade (also in `config/app.php`)

```
    'aliases' => [
        // ...
        'FormBuilder' => Kris\LaravelFormBuilder\Facades\FormBuilder::class
    ]
```

**Notice**: This package will add `laravelcollective/html` package and load aliases (Form, Html) if they do not exist in the IoC container.

Quick start
-----------

[](#quick-start)

Creating form classes is easy. With a simple artisan command:

```
php artisan make:form Forms/SongForm --fields="name:text, lyrics:textarea, publish:checkbox"
```

Form is created in path `app/Forms/SongForm.php` with content:

```
