Install this library using composer

composer require neilime/twbs-helper-module

Include Twitter Bootstrap assets

With AssetsBundle module (easy way)

  • composer require twbs/bootstrap
  • Edit the application module configuration file module/Application/config/module.config.php, adding the configuration fragment below:
    return [
    //...
    'assets_bundle' => [
    'assets' => [
    'less' => ['@zfRootPath/vendor/twitter/bootstrap/less/bootstrap.less'],
    ],
    ],
    //...
    ];
  • Edit layout file module/Application/view/layout/layout.phtml, to render head scripts:
    //...
    echo $this->headScript();
    //...

Manually