PHPackages                             laracore/formbuilder - 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. laracore/formbuilder

ActiveLibrary

laracore/formbuilder
====================

Laravel 5.x FormBuilder for Blade Engine based on Bootstrap 3

0.1.4(9y ago)029MITPHPPHP &gt;= 5.5.9

Since May 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/KHIT93/FormBuilder)[ Packagist](https://packagist.org/packages/laracore/formbuilder)[ RSS](/packages/laracore-formbuilder/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (2)Versions (5)Used By (0)

Laracore FormBuilder
====================

[](#laracore-formbuilder)

Laravel 5.1 FormBuilder for Blade Engine, based on Bootstrap 3 and used in [Laracore CMS](https://github.com/khit93/laracore).

This FormBuilder allows for creation of HTML forms using objects and renders them using the [Laravel Collective FormBuilder](https://github.com/LaravelCollective/html) and the [Bootstrap CSS Framework](http://getbootstrap.com).

\##Features

- Object to HTML mapping based on the Bootstrap framework
- Modifiable views for each form component
- Support for Laravel Form Model Binding
- Extensible API for an easy way to add new components

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

[](#installation)

```
$> composer require "laracore/formbuilder:dev-master"

$> composer update

```

Next, add your new provider to the `providers` array of `config/app.php`:

```
Laracore\FormBuilder\FormBuilderServiceProvider::class,

```

Finally, add two class aliases to the `aliases` array of `config/app.php`:

```
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,

```

We use the Facades from Laravel Collective.

Usage
-----

[](#usage)

All Bootstrap recommendations for form and input elements are predefined in the provided classes and just have to be used or you can override them and provide your own.

Create a new form

```
$form = new FormBuilder();

```

Add a component

```
$form->addComponent(new TextField('name', 'Name'));

```

Render the form

```
$form->render();

```

Adding multiple components at once

```
$components = [
	new TextField('name', 'Name'),
	new PasswordField('password', 'Password'),
	new PasswordField('confirm_password' 'Confirm your password'),
	new SubmitButton('Register user')
];

$form->addComponent($components);

```

Create form using named constructor

```
$model = new App\User();
$form = FormBuilder::create('POST', ['class' => 'form-horizontal', 'role' => 'form'], $model);

$components = [
	new TextField('name', 'Name'),
	new PasswordField('password', 'Password'),
	new PasswordField('confirm_password' 'Confirm your password'),
	new SubmitButton('Register user')
];

$form->addComponent($components);

```

Create form and add components using named constructor

```
$model = new App\User();

$components = [
	new TextField('name', 'Name'),
	new PasswordField('password', 'Password'),
	new PasswordField('confirm_password' 'Confirm your password'),
	new SubmitButton('Register user')
];

$form = FormBuilder::create('POST', ['class' => 'form-horizontal', 'role' => 'form'], $model, $components);

```

###  Health Score

24

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.1% 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 ~2 days

Total

4

Last Release

3588d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23f90d3db84a390e3949bd52038f7891a8b9e14bdf7943ae0bd3f5fc1acfd700?d=identicon)[Kenneth\_H](/maintainers/Kenneth_H)

---

Top Contributors

[![KHIT93](https://avatars.githubusercontent.com/u/8628945?v=4)](https://github.com/KHIT93 "KHIT93 (27 commits)")[![kenneth-vkd](https://avatars.githubusercontent.com/u/14905139?v=4)](https://github.com/kenneth-vkd "kenneth-vkd (2 commits)")

### Embed Badge

![Health badge](/badges/laracore-formbuilder/health.svg)

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

###  Alternatives

[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169175.3k2](/packages/spatie-laravel-mix-preload)[caouecs/sirtrevorjs

Sir Trevor JS in Laravel project

5421.6k](/packages/caouecs-sirtrevorjs)[rinvex/laravel-menus

Rinvex Menus is a simple menu builder package for Laravel, that supports hierarchical structure, ordering, and styling with full flexibility using presenters for easy styling and custom structure of menu rendering.

294.0k20](/packages/rinvex-laravel-menus)[efficiently/jquery-laravel

This package provides jQuery and the jQuery-ujs driver for your Laravel &gt;= 6 application.

1411.0k](/packages/efficiently-jquery-laravel)

PHPackages © 2026

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