PHPackages                             dannytrue/dlutwbootstrap - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. dannytrue/dlutwbootstrap

ActiveLibrary[Templating &amp; Views](/categories/templating)

dannytrue/dlutwbootstrap
========================

ZF2 module to generate Twitter Bootstrap UI - forms, navigation, etc.

4407[1 PRs](https://github.com/dannytrue/dlutwbootstrap/pulls)PHP

Since Feb 5Pushed 8y ago2 watchersCompare

[ Source](https://github.com/dannytrue/dlutwbootstrap)[ Packagist](https://packagist.org/packages/dannytrue/dlutwbootstrap)[ RSS](/packages/dannytrue-dlutwbootstrap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

DluTwBootstrap (ZF2 module)
===========================

[](#dlutwbootstrap-zf2-module)

---

Introduction
------------

[](#introduction)

DluTwBootstrap is a [Zend Framework 2](http://framework.zend.com/zf2) module facilitating usage of [Twitter Bootstrap](http://twitter.github.com/bootstrap) in ZF2 applications.

If you are new to DluTwBootstrap, first go to  to see it in action on-line.

Implemented features
--------------------

[](#implemented-features)

### [Forms](http://twitter.github.com/bootstrap/base-css.html#forms)

[](#forms)

- All four Twitter Bootstrap form types supported - Horizontal, Vertical, Inline, Search
- Supported form elements
    - Button
    - Checkbox
    - Csrf
    - File
    - Hidden
    - MultiCheckbox (not supported on Inline and Search forms)
    - Multiselect (not supported on Inline and Search forms)
    - Password
    - Radio (not supported on Inline and Search forms)
    - Reset
    - Select
    - Submit
    - Text
    - Textarea
- Inline help (hint), block help (description) and placeholder texts are supported with relevant elements
- Error state and messages (error messages are supported on Horizontal and Vertical forms)
- Highlighting required fields
- Prepend / append text to text input
- Multi-checkbox and radio can be optionally rendered inline
- Fieldset legend

Supported versions
------------------

[](#supported-versions)

- [Zend Framework 2.0.0 - 218 (commit 2a398b4e81)](https://github.com/zendframework/zf2/tree/2a398b4e81c31bdfbda917a867896c48d4f62bcf)
- Twitter Bootstrap v2.1.0

IMPORTANT: If the module does not seem to work, check the version of your ZF2 library and update to the version **and commit**specified above.

---

Installation - manual
---------------------

[](#installation---manual)

1. Go to your project's directory.
2. Clone this project into your `./vendor` directory as a `DluTwBootstrap` module:

    `git clone https://bitbucket.org/dlu/dlutwbootstrap.git ./vendor/DluTwBootstrap`
3. Follow the Post installation steps bellow

Installation - with Composer
----------------------------

[](#installation---with-composer)

1. Go to your project's directory.
2. Edit your `composer.json` file and add `"dlu/dlutwbootstrap": "dev-master"` into `require` section.
3. Run `php composer.phar install` (or `php composer.phar update`).
4. Follow the Post installation steps bellow

Post installation steps
-----------------------

[](#post-installation-steps)

1. Copy everything from the module's `public` directory to `/public`(i.e. Twitter Bootstrap and jQuery css files, js files and images).
2. Enable the DluTwBootstrap module in your app config file `/config/application.config.php`:

    - add `'DluTwBootstrap',` under `modules`
3. Optional: Move `module.DluTwBootstrap.global.php` from the module's root directory to `/config/autoload` directory. This sets the layout script to the one supplied with the module to load all necessary css and js dependencies. (Do not do this if you have your own layout and you already have the Twitter Bootstrap environment set-up properly in your project!)

Check and Demo
--------------

[](#check-and-demo)

To check that you have installed the module properly and to see it in action, install the [DluTwBootstrap Demo module](https://bitbucket.org/dlu/dlutwbootstrap-demo). The Demo module is the easiest and quickest way to start working with the DluTwBootstrap module as it clearly shows the rendered output (e.g. a form) 'side by side' with the actual source code used to produce that output. Recommended!

---

Links
-----

[](#links)

- [DluTwBootstrap (ZF2 module) source](https://bitbucket.org/dlu/dlutwbootstrap)
- [DluTwBootstrap Demo (ZF2 module) source](https://bitbucket.org/dlu/dlutwbootstrap-demo)
- DluTwBootstrap Demo App (ZF2 application)
    - [Live Demo App @ http://apps.zfdaily.com/dlutwbootstrap-demo](http://apps.zfdaily.com/dlutwbootstrap-demo)
    - [Source](https://bitbucket.org/dlu/dlutwbootstrap-demo-app)
- [Tutorials and discussion of DluTwBootstrap on ZF Daily](http://www.zfdaily.com/tag/dlutwbootstrap/)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d57c3206bd8ed27e03ea211898dff7bab4bb5495a847036ae3742dc81a95ecd?d=identicon)[dannytrue](/maintainers/dannytrue)

---

Top Contributors

[![dlu-gs](https://avatars.githubusercontent.com/u/1921448?v=4)](https://github.com/dlu-gs "dlu-gs (101 commits)")[![benjy](https://avatars.githubusercontent.com/u/863137?v=4)](https://github.com/benjy "benjy (4 commits)")[![TNAJanssen](https://avatars.githubusercontent.com/u/2812277?v=4)](https://github.com/TNAJanssen "TNAJanssen (4 commits)")[![dannytrue](https://avatars.githubusercontent.com/u/1245447?v=4)](https://github.com/dannytrue "dannytrue (3 commits)")

### Embed Badge

![Health badge](/badges/dannytrue-dlutwbootstrap/health.svg)

```
[![Health](https://phpackages.com/badges/dannytrue-dlutwbootstrap/health.svg)](https://phpackages.com/packages/dannytrue-dlutwbootstrap)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

555.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
