Add the following to your composer.json:

"require": {
    "patricktalmadge/bootstrapper": "~5"
}
    

Register the Bootstrapper Service Provider:

'providers' => array(
    'Bootstrapper\BootstrapperServiceProvider'
)

(Optional) Add the following aliases:

'Accordion' => 'Bootstrapper\Facades\Accordion',
'Alert' => 'Bootstrapper\Facades\Alert',
'Badge' => 'Bootstrapper\Facades\Badge',
'Breadcrumb' => 'Bootstrapper\Facades\Breadcrumb',
'Button' => 'Bootstrapper\Facades\Button',
'ButtonGroup' => 'Bootstrapper\Facades\ButtonGroup',
'Carousel' => 'Bootstrapper\Facades\Carousel',
'ControlGroup' => 'Bootstrapper\Facades\ControlGroup',
'DropdownButton' => 'Bootstrapper\Facades\DropdownButton',
'Form' => 'Bootstrapper\Facades\Form',
'Helpers' => 'Bootstrapper\Facades\Helpers',
'Icon' => 'Bootstrapper\Facades\Icon',
'InputGroup' => 'Bootstrapper\Facades\InputGroup',
'Image' => 'Bootstrapper\Facades\Image',
'Label' => 'Bootstrapper\Facades\Label',
'MediaObject' => 'Bootstrapper\Facades\MediaObject',
'Modal' => 'Bootstrapper\Facades\Modal',
'Navbar' => 'Bootstrapper\Facades\Navbar',
'Navigation' => 'Bootstrapper\Facades\Navigation',
'Panel' => 'Bootstrapper\Facades\Panel',
'ProgressBar' => 'Bootstrapper\Facades\ProgressBar',
'Tabbable' => 'Bootstrapper\Facades\Tabbable',
'Table' => 'Bootstrapper\Facades\Table',
'Thumbnail' => 'Bootstrapper\Facades\Thumbnail',

Download and include the Twitter Bootstrap CSS and Javascript files and you're good to go!

First, open up your composer.json file and add the following to your require list:

"require": {
  "patricktalmadge/bootstrapper": "~5"
}

Then run composer update in your terminal and get a coffee/tea/your beverage of choice while it updates. I find that makes the wait much nicer.

Then open up app/config/app.php and register the Bootstrapper Service Provider in the providers array:

'providers' => array(
  'Bootstrapper\BootstrapperServiceProvider'
)
If you are using Laravel 5, then you will need to use the Laravel 5 Service Provider instead: Bootstrapper\BootstrapperServiceProvider

This means you'll get to use all the juicy goodness that Bootstrapper provides.

This bit's optional, but it does make life a lot easier in the long run so it's advised. If you don't want to do this, that's fine - but since it saves you writing Navbar::create()) with no performance hit.... Add the following to your aliases array:

'aliases' => array(
    'Accordion' => 'Bootstrapper\Facades\Accordion',
    'Alert' => 'Bootstrapper\Facades\Alert',
    'Badge' => 'Bootstrapper\Facades\Badge',
    'Breadcrumb' => 'Bootstrapper\Facades\Breadcrumb',
    'Button' => 'Bootstrapper\Facades\Button',
    'ButtonGroup' => 'Bootstrapper\Facades\ButtonGroup',
    'Carousel' => 'Bootstrapper\Facades\Carousel',
    'ControlGroup' => 'Bootstrapper\Facades\ControlGroup',
    'DropdownButton' => 'Bootstrapper\Facades\DropdownButton',
    'Form' => 'Bootstrapper\Facades\Form',
    'Helpers' => 'Bootstrapper\Facades\Helpers',
    'Icon' => 'Bootstrapper\Facades\Icon',
    'InputGroup' => 'Bootstrapper\Facades\InputGroup',
    'Image' => 'Bootstrapper\Facades\Image',
    'Label' => 'Bootstrapper\Facades\Label',
    'MediaObject' => 'Bootstrapper\Facades\MediaObject',
    'Modal' => 'Bootstrapper\Facades\Modal',
    'Navbar' => 'Bootstrapper\Facades\Navbar',
    'Navigation' => 'Bootstrapper\Facades\Navigation',
    'Panel' => 'Bootstrapper\Facades\Panel',
    'ProgressBar' => 'Bootstrapper\Facades\ProgressBar',
    'Tabbable' => 'Bootstrapper\Facades\Tabbable',
    'Table' => 'Bootstrapper\Facades\Table',
    'Thumbnail' => 'Bootstrapper\Facades\Thumbnail',
)

Now all you need to do is include the Bootstrap files. Feel free to do this however you want:

  • Download bootstrap.min.js from Bootstrap, and pop them in your public folder. Then do the same with Jquery. Then use the following in your views to include Bootstrap and Jquery:
    HTML::style('css/bootstrap.min.css')
    HTML::script('js/jquery.min.js')
    HTML::script('js/bootstrap.min.js')
    
    Since v5.0.0, we have Twitter Bootstrap as a dependency in the composer.json so these files will be included in vendor/twbs/bootstrap/dist (except jQuery). You'll still need to move them manually
  • Use the various CDNs to include the relevant files:
    HTML::style('//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css')
    HTML::script('http://code.jquery.com/jquery-1.10.1.min.js')
    HTML::script('//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js')
    
  • Let Bootstrapper handle it using the helper method:
    Helpers::css()
    Helpers::js()
    
    This will get the latest version that we support. If you want a specific version of either, run php artisan config:publish patricktalmadge/bootstrapper and edit the values in app/config/packages/patricktalmadge/bootstrapper/config.php.