PHPackages                             illuminate3/bootawesome - 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. illuminate3/bootawesome

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

illuminate3/bootawesome
=======================

An easy way to intergrate Twitter Bootstrap with Laravel 4.

440PHP

Since Apr 17Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Fast Bootstrap and Fontawesome integration with Laravel
=======================================================

[](#fast-bootstrap-and-fontawesome-integration-with-laravel)

Think of Bootstrap as an easy way to integrate Bootstrap with Laravel 4, providing a variety of helpers to speed up development. These include:

- `Bootstrap::css-boot`
- `Bootstrap::css-font`
- `Bootstrap::js-1x`
- `Bootstrap::js-2x`
- `Bootstrap::vertical`
- `Bootstrap::horizontal`
- `Bootstrap::inline`
- `Bootstrap::text`
- `Bootstrap::password`
- `Bootstrap::email`
- `Bootstrap::file`
- `Bootstrap::date`
- `Bootstrap::datetime`
- `Bootstrap::time`
- `Bootstrap::textarea`
- `Bootstrap::select`
- `Bootstrap::checkbox`
- `Bootstrap::radio`
- `Bootstrap::submit`
- `Bootstrap::button`
- `Bootstrap::reset`
- `Bootstrap::link`
- `Bootstrap::secureLink`
- `Bootstrap::linkRoute`
- `Bootstrap::linkAction`
- `Bootstrap::linkIcon`
- `Bootstrap::mailto`
- `Bootstrap::none`
- `Bootstrap::success`
- `Bootstrap::info`
- `Bootstrap::warning`
- `Bootstrap::danger`

Original source
---------------

[](#original-source)

This package is essentially Bradley Cronford's [Bootstrap](https://github.com/bradcornford/Bootstrapper)

Source Versions
---------------

[](#source-versions)

[Bootstrap](http://getbootstrap.com/) v3.2.0 [FontAwesome](http://fortawesome.github.io/Font-Awesome/) v4.2.0 [jquery](http://jquery.com/) v1.11.1 or v2.1.1

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

[](#installation)

Begin by installing this package through Composer. Edit your project's `composer.json` file to require `illuminate3/bootawesome`.

```
"require": {
	"illuminate3/bootawesome": "dev-master"
}

```

Next, update Composer from the Terminal:

```
composer update

```

Once this operation completes, the next step is to add the service provider. Open `app/config/app.php`, and add a new item to the providers array.

```
'Illuminate3\BootAwesome\BootstrapServiceProvider',

```

The final step is to introduce the facade. Open `app/config/app.php`, and add a new item to the aliases array.

```
'Bootstrap'       => 'Illuminate3\BootAwesome\Facades\Bootstrap',

```

If you want to introduce the packages JavaScripts and Stylesheets, run the following command to pull them into your project.

```
php artisan asset:publish illuminate3/bootawesome

```

That's it! You're all set to go.

Usage
-----

[](#usage)

In order to include the Bootstrap dependencies you will need to utilise the Bootstrap::css() and Bootstrap:js() methods in the head section of your layout / page template.

It's really as simple as using the Bootstrap class in any Controller / Model / File you see fit with:

`Bootstrap::`

This will give you access to

- [CSS-BOOT](#cssBoot)
- [CSS-FONT](#cssFont)
- [JS-1X](#js1x)
- [JS-2X](#js2X)
- [Vertical](#vertical)
- [Horizontal](#horizontal)
- [Inline](#inline)
- [Text](#text)
- [Password](#password)
- [Email](#email)
- [File](#file)
- [Date](#date)
- [Datetime](#datetime)
- [Time](#time)
- [Textarea](#textarea)
- [Select](#select)
- [Checkbox](#checkbox)
- [Radio](#radio)
- [Submit](#submit)
- [Button](#button)
- [Reset](#reset)
- [modalButton](#modalButton)
- [Link](#link)
- [Secure Link](#secure-link)
- [Link Route](#link-route)
- [Link Action](#link-action)
- [Link Icon](#link-Icon)
- [Link Icon Route](#link-Icon-Route)
- [Mailto](#mailto)
- [None Alert](#none-alert)
- [Success Alert](#success-alert)
- [Info Alert](#info-alert)
- [Warning Alert](#warning-alert)
- [Danger Alert](#danger-alert)
- [Full Modal](#fullModal)

### CSS-BOOT

[](#css-boot)

The `css-boot` method includes Bootstrap CSS via either a CDN / Local file, and pass optional attributes.

```
Bootstrap::cssBoot();
Bootstrap::cssBoot('local', ['type' => 'text/css']);

```

### CSS-FONT

[](#css-font)

The `css-font` method includes Bootstrap CSS via either a CDN / Local file, and pass optional attributes.

```
Bootstrap::cssFont();
Bootstrap::cssFont('local', ['type' => 'text/css']);

```

### JS-1X

[](#js-1x)

The `js-1x` method includes Bootstrap JS via either a CDN / Local file, and pass optional attributes.

```
Bootstrap::js1x();
Bootstrap::js1x('local', ['type' => 'text/javascript']);

```

### JS-2X

[](#js-2x)

The `js-2x` method includes Bootstrap JS via either a CDN / Local file, and pass optional attributes.

```
Bootstrap::js2x();
Bootstrap::js2x('local', ['type' => 'text/javascript']);

```

### Vertical

[](#vertical)

The `vertical` method allows a form to be set in a vertical manner. This is the default form type. The vertical method can be chained before any form element is added and will continue for subsequent form elements until overwritten.

```
Bootstrap::vertical();
Bootstrap::vertical()->text('text', 'Text', 'Value');

```

### Horizontal

[](#horizontal)

The `horizontal` method allows a form to be set in a horizontal manner. This form type accepts both an input class and a label class. The horizontal method can be chained before any form element is added and will continue for subsequent form elements until overwritten.

```
Bootstrap::horizontal('col-sm-10', 'col-sm-2');
Bootstrap::horizontal('col-sm-10', 'col-sm-2')->text('text', 'Text', 'Value');

```

### Inline

[](#inline)

The `inline` method allows a form to be set in an inline manner. This form type accepts only a label class. The inline method can be chained before any form element is added and will continue for subsequent form elements until overwritten.

```
Bootstrap::inline('sr-only');
Bootstrap::inline('sr-only')->text('text', 'Text', 'Value');

```

### Text

[](#text)

The `text` method generates a text field with an optional label and Font Awesome icon, from errors and options.

```
Bootstrap::text('text', 'Text', 'Value', $errors);

```

### Password

[](#password)

The `password` method generates a password field with an optional label and Font Awesome icon, from errors and options.

```
Bootstrap::password('password', 'Password');

```

### Email

[](#email)

The `email` method generates an email field with an optional label and Font Awesome icon, from errors and options.

```
Bootstrap::email('email', 'Email address', 'Value');

```

### File

[](#file)

The `file` method generates a file field with an optional label, from errors and options.

```
Bootstrap::file('file', 'File');

```

### Date

[](#date)

The `date` method generates a date field with a date picker, with an optional label, from errors, input options, and javascript parameters.

```
Bootstrap::date('date', 'Date');
Bootstrap::date('date', 'Date', date('d-m-Y'), $errors, [], ['format' => 'DD-MM-YYYY']);

```

### Datetime

[](#datetime)

The `datetime` method generates a date field with a datetime picker, with an optional label, from errors, input options, and javascript parameters.

```
Bootstrap::datetime('datetime', 'Date');
Bootstrap::datetime('datetime', 'Date', date('d-m-Y H:i:s'));

```

### Time

[](#time)

The `time` method generates a date field with a time picker, with an optional label, from errors, input options, and javascript parameters.

```
Bootstrap::time('time', 'Time');
Bootstrap::time('time', 'Time', date('H:i:s'));

```

### Textarea

[](#textarea)

The `textarea` method generates a textarea field with an optional label and Font Awesome icon, from errors and options.

```
Bootstrap::textarea('file', 'File', 'Value');

```

### Select

[](#select)

The `select` method generates a select field with items and an optional label, selected item, from errors and options.

```
Bootstrap::select('select', 'Select', ['1' => 'Item 1', '2' => 'Item 2'], 2);

```

### Checkbox

[](#checkbox)

The `checkbox` method generates a checkbox field with a value and an optional label, checked and options.

```
Bootstrap::checkbox('checkbox', 'Checkbox', 1, true);

```

### Radio

[](#radio)

The `radio` method generates a radio field with a value and an optional label, checked and options.

```
Bootstrap::checkbox('radio', 'Radio', 1);

```

### Submit

[](#submit)

The `submit` method generates a submit button with a value and optional attributes.

```
Bootstrap::submit('Submit');

```

### Button

[](#button)

The `button` method generates a button with a value and optional attributes.

```
Bootstrap::button('Button');

```

### Reset

[](#reset)

The `reset` method generates a reset button with a value and optional attributes.

```
Bootstrap::reset('Reset');

```

### modalButton

[](#modalbutton)

The `modalButton` method generates a button with a value and optional attributes.

```
Bootstrap::modalButton('Submit');

```

### Link

[](#link)

The `link` method generates a link button with a url, title and optional attributes and secure link.

```
Bootstrap::link('/', 'Link');

```

### Secure Link

[](#secure-link)

The `secureLink` method generates a secure link button with a url, title and optional attributes and secure link.

```
Bootstrap::secureLink('/', 'Link');

```

### Link Route

[](#link-route)

The `linkRoute` method generates a link button with a route, title and optional parameters, attributes.

```
Bootstrap::linkRoute('home', 'Home');

```

### Link Action

[](#link-action)

The `linkAction` method generates a link button with an action, title and optional parameters, attributes.

```
Bootstrap::linkAction('index', 'Home');

```

### Link Icon

[](#link-icon)

The `linkIcon` method generates a link button with a url, title, Font Awesome icon and optional attributes and secure link. You do not need the Font Awesome "fa" prefix, just use the icon name and it's size.

```
Bootstrap::linkIcon('/', 'Link', 'flag fa-fw');

```

### Link Icon Route

[](#link-icon-route)

The `linkIconRoute` method generates a link button with a url, title, Font Awesome icon and optional attributes and secure link. You do not need the Font Awesome "fa" prefix, just use the icon name and it's size.

```
Bootstrap::linkIcon('/', 'Link', 'flag fa-fw');

```

### Mailto

[](#mailto)

The `mailto` method generates a mailto link button with an email address, title and optional attributes.

```
Bootstrap::mailto('test@test.com', 'Email');

```

### None Alert

[](#none-alert)

The `none` method generates a none alert with content with optional emphasis, optionally be dismissible, and optional attributes.

```
Bootstrap::none('A message', null, true);

```

### Success Alert

[](#success-alert)

The `success` method generates a success alert with content with optional emphasis, optionally be dismissible, and optional attributes.

```
Bootstrap::success('A success message', 'Well done!', true);

```

### Info Alert

[](#info-alert)

The `info` method generates an info alert with content with optional emphasis, optionally be dismissible, and optional attributes.

```
Bootstrap::info('An info message', 'Heads up!', true);

```

### Warning Alert

[](#warning-alert)

The `warning` method generates a warning alert with content with optional emphasis, optionally be dismissible, and optional attributes.

```
Bootstrap::warning('A warning message', 'Warning!', true);

```

### Danger Alert

[](#danger-alert)

The `danger` method generates a danger alert with content with optional emphasis, optionally be dismissible, and optional attributes.

```
Bootstrap::danger('A danger message', 'Oh snap!', true);

```

### Full Modal

[](#full-modal)

The `fullModal` method generates a modal alert with content with optional emphasis, optionally be dismissible, and optional attributes.

```
Bootstrap::fullModal('A modal message', 'Oh snap!', submit);

```

```
{{ Bootstrap::modalButton(
	trans('lingos::button.delete'),
	array(
		'class' => 'btn btn-danger',
		'data-toggle' => 'modal',
		'data-target' => '#delete-' . $user->id,
	)
) }}

{{ Bootstrap::fullModal(
$user->id, 'myModal', 'title', 'admin.users.destroy', 'delete', 'delete', 'close', 'button'
) }}

```

### License

[](#license)

Bootawesome is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69.2% 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/b2352835e13920d27fe135a900fa9ff529ec0f5bcb1e76f3993cda0f92212c74?d=identicon)[illuminate3](/maintainers/illuminate3)

---

Top Contributors

[![illuminate3](https://avatars.githubusercontent.com/u/5723311?v=4)](https://github.com/illuminate3 "illuminate3 (9 commits)")[![SakuraCart](https://avatars.githubusercontent.com/u/1558194?v=4)](https://github.com/SakuraCart "SakuraCart (4 commits)")

### Embed Badge

![Health badge](/badges/illuminate3-bootawesome/health.svg)

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

###  Alternatives

[zhuzhichao/bank-card-info

Get the bank card info

45464.8k](/packages/zhuzhichao-bank-card-info)

PHPackages © 2026

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