library twitter-bootstrap-module
Zend Framework 2 Module that provides Twitter Bootstrap viewhelpers
mschindler83/twitter-bootstrap-module
Zend Framework 2 Module that provides Twitter Bootstrap viewhelpers
- Thursday, November 21, 2013
- by mschindler83
- Repository
- 1 Watchers
- 0 Stars
- 5 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Introduction
This is a simple module which encapsulates most of the twitter bootstrap gadgets
into viewhelpers, (*1)
Installation
With composer
-
Add this project and in your composer.json:, (*2)
"require": {
"mschindler83/twitter-bootstrap-module": "dev-master"
}
-
Now tell composer to download TwitterBootstrapModule by running the command:, (*3)
$ php composer.phar update
-
Enabling it in your application.config.php
file., (*4)
<?php
return array(
'modules' => array(
// ...
'TwitterBootstrapModule',
),
// ...
);
Usage
Just call the viewhelper in your view., (*5)
Simple label:, (*6)
echo $this->bootstrapLabel('success', 'Wohoo its a success!!');
Progress bar:, (*7)
echo $this->bootstrapProgressBar()
->setAnimated()
->setStriped()
->addProgress(50, 'danger')
->addProgress(50, 'success')
->render();