PHPackages                             toddmcbrearty/bladestrap - 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. toddmcbrearty/bladestrap

ActiveLibrary

toddmcbrearty/bladestrap
========================

Generate bootstrap form elements blocks.

154PHP

Since Feb 17Pushed 11y ago2 watchersCompare

[ Source](https://github.com/toddmcbrearty/Laravel-Bladestrap)[ Packagist](https://packagist.org/packages/toddmcbrearty/bladestrap)[ RSS](/packages/toddmcbrearty-bladestrap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Bladestrap
==========

[](#bladestrap)

\##Generates bootstrap blocks using blade functions This is a simple class that will wrap form elements within bootstrap form wrappers. I do not have much done I am building it as I need it. If you update it please fork and add a push request.

\#Installation

\###Composer

add "toddmcbrearty/bladestrap": "dev-master" to your composer file

\####Laravel 4.2.\*

Open you app/config/app.php file Look within your providers key

**Find and comment line**

```
'Illuminate\Html\HtmlServiceProvider',

```

**then add line**

```
'Toddmcbrearty\Bladestrap\BladestrapServiceProvider',

```

\#Usage

You have all the blade function already extended through this package. You can still use all your Form:: methods but now you can also use the bootstrap methods.

**New available methods:**

- elOpen(options = \[\])
- elClose()
- elText($name, $label, $value = null, $options = \[\], $wrapper\_options = \[\])
- elNumber($name, $label, $value = null, $options = \[\])
- elPassword($name, $label, $value = null, $options = \[\])
- elEmail($name, $label, $options = \[\])
- elTextarea($name, $label, $value = null, $options = \[\])
- elRadio($name, $label, $value = 1, $checked = null, $options = array())
- elCheckbox($name, $label, $value = 1, $checked = null, $options = array())
- elSelect($name, $label, $list, $selected = null, $options = \[\])
- elSubmit($value, $options = \[\], $class = 'warning')
- elButton($value, $options = \[\], $class = 'success')
- elMessage($messages, $class = 'success')
- elCols($size, $data)
    - $size is the size of each column. (soon you'll be able to pass an array of column sizes)
    - $data will be an array of html that will be loaded into the column
    - Columns are created based on the amount of data elements there are

\#Example:

\###Blade Code

```
  {{ Form::elOpen() }}
    {{ Form::elText('username', 'Username:') }}
    {{ Form::elPassword('password', 'Password:') }}
    {{ Form::elSubmit('Login')
  {{ Form::close() }} or {{ Form::elClose() }}

```

\###Generates

```

    Username:
    Password:

```

\###Blade Code

```
{{ Form::elOpen(['url' => 'login']) }}
    {{ Form::elText('company', 'Company:', null, ['placeholder' => 'Company']) }}
    {{ Form::elCols(6, [
        Form::elText('firstname', 'First Name:', null, ['placeholder' => 'First Name']),
        Form::elText('lastname', 'Last Name:', null, ['placeholder' => 'Last Name'])
    ]) }}
    {{ Form::elEmail('email', 'Email:', null, ['placeholder' => 'Email']) }}
    {{ Form::elPassword('password', 'Password:', ['placeholder' => 'Password']) }}
    {{ Form::label('Subscribe to emails:') }}
    {{ Form::elRadio('subscribe', 'Yes', 1, true, [], true) }}
    {{ Form::elRadio('subscribe', 'No', 0, true, [], true) }}
    {{ Form::elSelect('type', 'Account Type:', ['1' => 'Business', '2' => 'Personal']) }}
    {{ Form::elCheckbox('agree', 'Agree to terms', 1, false) }}
    {{ Form::elSubmit('Register!', [], 'success') }}
{{ Form::elClose() }}

```

\###Generates

```

     Company:

     First Name:Last Name:
     Email:
     Password:
     Subscribe To Emails:
      Yes
      No
     Account Type:BusinessPersonal
      Agree to terms

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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/084711358b365dc3ea5d673274555d280885b0f933e972b4343b3ce7d6395055?d=identicon)[toddmcbrearty](/maintainers/toddmcbrearty)

---

Top Contributors

[![toddmcbrearty](https://avatars.githubusercontent.com/u/74171?v=4)](https://github.com/toddmcbrearty "toddmcbrearty (30 commits)")

### Embed Badge

![Health badge](/badges/toddmcbrearty-bladestrap/health.svg)

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

PHPackages © 2026

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