mschindler83/twitter-bootstrap-module

Zend Framework 2 Module that provides Twitter Bootstrap viewhelpers

dev-master / 0.1.x-dev 2013-11-21 21:14 UTC

This package is auto-updated.

Last update: 2024-04-15 20:06:33 UTC


README

Introduction

This is a simple module which encapsulates most of the twitter bootstrap gadgets into viewhelpers

Installation

With composer

  1. Add this project and in your composer.json:

    "require": {
        "mschindler83/twitter-bootstrap-module": "dev-master"
    }
  2. Now tell composer to download TwitterBootstrapModule by running the command:

    $ php composer.phar update
  3. Enabling it in your application.config.phpfile.

    <?php
    return array(
        'modules' => array(
            // ...
            'TwitterBootstrapModule',
        ),
        // ...
    );

Usage

Just call the viewhelper in your view.

Simple label:

echo $this->bootstrapLabel('success', 'Wohoo its a success!!');

Progress bar:

echo $this->bootstrapProgressBar()
    ->setAnimated()
    ->setStriped()
    ->addProgress(50, 'danger')
    ->addProgress(50, 'success')
    ->render();