PHPackages                             kilrizzy/bootforms - 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. kilrizzy/bootforms

ActiveLibrary

kilrizzy/bootforms
==================

Generate HTML form structure for use with Twitter Bootstrap

81584PHP

Since Dec 9Pushed 12y ago1 watchersCompare

[ Source](https://github.com/kilrizzy/bootforms)[ Packagist](https://packagist.org/packages/kilrizzy/bootforms)[ RSS](/packages/kilrizzy-bootforms/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

\##Heads Up!

I built this package as a helper to make my projects easier, since then I have found a package that seems to do what bootforms aims for and much more.

I highly recommend taking a peek at [Anahkiasen/former](https://github.com/Anahkiasen/former) to see if this better suits your project

Bootforms
=========

[](#bootforms)

Bootstrap form field generator for Laravel 4. Bootforms will add "controls", labels, and "group" html elements to your form fields to make integration with Bootstrap quicker and easier.

Turning This:

```
{{ Bootform::field(array(
  'label'       => "Full Name",
  'name'        => "name",
)) }}
{{ Bootform::field(array(
	'label'       => "Email Address",
	'name'        => "email",
	'input-prepend' => '',
	'input-attributes' => array('placeholder' => "example@example.com"),
	'input-class' => "input-large"
  )) }}

```

Into This:

```

  Full Name

  Email Address

```

Bootforms uses Laravel's Form class to generate form fields.

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

[](#installation)

Add `kilrizzy/bootforms` to `composer.json`.

```
"kilrizzy/bootforms": "dev-master"

```

Run `composer update` to pull down the latest version of Bootforms.

Open `app/config/app.php` and add service provider:

```
'Kilrizzy\Bootforms\BootformsServiceProvider',

```

In `app/config/app.php` add alias:

```
'Bootform' => 'Kilrizzy\Bootforms\BootformsFacade',

```

Usage
-----

[](#usage)

Pass an array of field data to Bootforms to generate html using the following options:

```
$options = array(
  'type' => "text", //field input type (text, textarea, password, select, checkbox, radio, file)
  'name' => "", //field input name
  'id' => "", //field input id
  'value' => "", //field input value
  'label' => "", //field label
  'help' => "", //field help display text
  'label-class' => "", //label class
  'group' => true, //wrap group
  'group-class' => "", //class applied to the group container
  'group-attributes' => array(), //additional group attributes
  'controls' => true, //wrap controls
  'controls-class' => "", //class applied to the controls container
  'controls-attributes' => array(), //additional controls attributes
  'input-class' => "", //class applied to the input
  'input-attributes' => array(), //additional input attributes
  'input-prepend' => "", //prepend control data
  'input-append' => "", //append control data
);

```

Take a look at demo/bootforms.blade.php for an example view

[![Bitdeli Badge](https://camo.githubusercontent.com/5c647086336b1ac6116b9c7cac58bcbc951cc7182e5224337a3a44d9ef562189/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f6b696c72697a7a792f626f6f74666f726d732f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.6% 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://www.gravatar.com/avatar/635424cf1bef1de3d10325975d26874db65e151d91b7b67d7099d172bcfdbb9d?d=identicon)[kilrizzy](/maintainers/kilrizzy)

---

Top Contributors

[![kilrizzy](https://avatars.githubusercontent.com/u/132478?v=4)](https://github.com/kilrizzy "kilrizzy (11 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")[![neilcrookes](https://avatars.githubusercontent.com/u/24232?v=4)](https://github.com/neilcrookes "neilcrookes (1 commits)")

### Embed Badge

![Health badge](/badges/kilrizzy-bootforms/health.svg)

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

PHPackages © 2026

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