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
Requires
- php: >=5.4.14
- zendframework/zend-mvc: 2.*
- zendframework/zend-view: 2.*
This package is auto-updated.
Last update: 2024-11-15 21:18:41 UTC
README
Introduction
This is a simple module which encapsulates most of the twitter bootstrap gadgets into viewhelpers
Installation
With composer
-
Add this project and in your composer.json:
"require": { "mschindler83/twitter-bootstrap-module": "dev-master" }
-
Now tell composer to download TwitterBootstrapModule by running the command:
$ php composer.phar update
-
Enabling it in your
application.config.php
file.<?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();