djordje/laravel-twbs-helpers

Laravel 4 - Twitter Bootstrap 3 Helpers (html builders)

dev-master 2013-10-27 12:19 UTC

This package is not auto-updated.

Last update: 2024-11-04 17:03:28 UTC


README

Build Status

This package aims to provide helpers (html builders) for complex Twitter Bootstrap 3 elements.

For example build menu with properly classed active links...

Usage

Currently supported:

  • ListGroup (build .list-group wrapper with .list-group-item child elements) docs
  • Nav (build list of links for ul.nav) docs
Installation

Recommended installation is trough composer, add to your composer.json:

"require": {
	"djordje/laravel-twbs-helpers": "dev-master"
}

Add service provider to your app/config/app.php file:

# ...

'providers' => array(
    # ...
    'Djordje\LaravelTwbsHelpers\LaravelTwbsHelpersServiceProvider',
),

# ...

Optionally you can add mostly used facades to your application aliases:

# ...

'aliases' => array(
    # ...
    'TwbsNav' => 'Djordje\LaravelTwbsHelpers\Facades\TwbsNav'
),

# ...

TODO

  • Build more helpers
  • Write bette documentation
Released under MIT licence.