PHPackages                             zfbase/zend1-bootstrap3 - 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. zfbase/zend1-bootstrap3

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

zfbase/zend1-bootstrap3
=======================

Twitter Bootstrap v.3 Forms for Zend Framework v.1

v1.0.12(9mo ago)1455.7k↓39%21[5 issues](https://github.com/zfbase/zend1-bootstrap3/issues)[2 PRs](https://github.com/zfbase/zend1-bootstrap3/pulls)1MITPHPPHP &gt;=5.3.0

Since Jun 2Pushed 9mo ago8 watchersCompare

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

READMEChangelogDependencies (1)Versions (13)Used By (1)

\#Twitter Bootstrap 3 Form for Zend Framework 1

Form types
----------

[](#form-types)

The library supports all Bootstrap 3 form types.

### One PHP code

[](#one-php-code)

```
class Application_Form_Example extends Twitter_Bootstrap3_Form_*
{
    public function init()
    {
        $this->addElement('email', 'email', array(
            'label' => 'Email',
            'placeholder' => 'Email',
        ));

        $this->addElement('password', 'password', array(
            'label' => 'Password',
            'placeholder' => 'Password',
        ));

        $this->addElement('checkbox', 'checkbox', array(
            'label' => 'Remember me',
        ));

        $this->addElement('submit', 'submit', array(
            'label' => 'Sign in',
        ));
    }
}
```

### HTML generated for vertical form

[](#html-generated-for-vertical-form)

The form must be inherited from class `Twitter_Bootstrap3_Form_Vertical`.

```

        Email

        Password

            Remember me

```

### HTML generated for horizontal form

[](#html-generated-for-horizontal-form)

The form must be inherited from class `Twitter_Bootstrap3_Form_Horizontal`.

```

        Email

        Password

                    Remember me

```

### HTML generated for inline form

[](#html-generated-for-inline-form)

The form must be inherited from class `Twitter_Bootstrap3_Form_Inline`.

```

        Email

        Password

                Remember me

```

Supported controls
------------------

[](#supported-controls)

The library supports all Zend Framework 1 and Bootstrap 3 form elementes.

All example present for vertical form.

### Inputs

[](#inputs)

Most common form control, text-based input fields. Includes support for all HTML5 types: `text`, `password`, `datetime`, `datetime-local`, `date`, `month`, `time`, `week`, `number`, `email`, `url`, `search`, `tel`, and `color`.

```

    Text

```

```
$this->addElement('text', 'text', array(
    'label' => 'Text',
    'placeholder' => 'Text input',
));
```

### Textarea

[](#textarea)

```

    Textarea
    Textarea

```

```
$this->addElement('textarea', 'textarea', array(
    'label' => 'Textarea',
    'value' => 'Textarea',
    'rows' => 4,
));
```

### Checkboxes and radios

[](#checkboxes-and-radios)

#### One checkbox

[](#one-checkbox)

```

            Checkbox

```

```
$this->addElement('checkbox', 'checkbox', array(
    'label' => 'Checkbox',
    'checkedValue' => 'checked Value',
    'uncheckedValue' => 'unchecked Value',
));
```

#### MultiCheckbox

[](#multicheckbox)

```

            Option one is this and that — be sure to include why it's great

            Option two is disabled

```

```
$this->addElement('multiCheckbox', 'multiCheckbox', array(
    'multiOptions' => array(
        'option1' => 'Option one is this and that &mdash; be sure to include why it\'s great',
        'option2' => 'Option two is disabled',
    ),
    'disable' => array('option2'),
    'escape' => false,
));
```

#### Radios

[](#radios)

```

    Radio

            Option one is this and that — be sure to include why it's great

            Option two can be something else and selecting it will deselect option one

            Option three is disabled

```

```
$this->addElement('radio', 'radio', array(
    'multiOptions' => array(
        'option1' => 'Option one is this and that &mdash; be sure to include why it\'s great',
        'option2' => 'Option two can be something else and selecting it will deselect option one',
        'option3' => 'Option three is disabled',
    ),
    'label' => 'Radio',
    'value' => 'option1',
    'disable' => array('option3'),
    'escape' => false,
));
```

#### Inline multicheckbox and radio

[](#inline-multicheckbox-and-radio)

```

        One

        Two

        One

        Two

```

```
$this->addElement('multiCheckbox', 'checkbox', array(
    'multiOptions' => array(
        '1' => 'One',
        '2' => 'Two',
    ),
    'inline' => true,
));

$this->addElement('radio', 'radio', array(
    'multiOptions' => array(
        '1' => 'One',
        '2' => 'Two',
    ),
    'inline' => true,
));
```

### Selects

[](#selects)

#### One value

[](#one-value)

```

    Select

        one
        two
        three

```

```
$this->addElement('select', 'select', array(
    'label' => 'Select',
    'multiOptions' => array(
        1 => 'one',
        2 => 'two',
        3 => 'three',
    ),
));
```

#### Multiple

[](#multiple)

```

    MultiSelect

        January
        February
        March
        April
        May
        June
        July
        August
        September
        October
        November
        December

```

```
$this->addElement('multiselect', 'multiselect', array(
    'label' => 'MultiSelect',
    'multiOptions' => array(
        1 => 'January',
        2 => 'February',
        3 => 'March',
        4 => 'April',
        5 => 'May',
        6 => 'June',
        7 => 'July',
        8 => 'August',
        9 => 'September',
        10 => 'October',
        11 => 'November',
        12 => 'December',
    ),
));
```

### Buttons

[](#buttons)

Includes support for button types: `button`, `submit`, `reset` and `image`.

```

    button

```

```
$this->addElement('button', 'button', array(
    'label' => 'button',
));

$this->addElement('submit', 'submit', array(
    'label' => 'submit',
));

$this->addElement('reset', 'reset', array(
    'label' => 'reset',
));

$this->addElement('image', 'image', array(
    'src' => '/button.png',
));
```

### Simple text

[](#simple-text)

Element `static` is an alias of element `note`.

```

    Static
    Static

```

```
$this->addElement('static', 'static', array(
    'label' => 'Static',
    'value' => 'Static',
));
```

### Other decorated elements

[](#other-decorated-elements)

The library also contains elements for decorators: `file`, `hidden`, `hash` and `captcha`.

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance49

Moderate activity, may be stable

Popularity41

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 82.8% 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.

###  Release Activity

Cadence

Every ~337 days

Recently: every ~166 days

Total

12

Last Release

290d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6680cc827681dc906500af352398eea6e1accfddc6c14a909766484fd4aee716?d=identicon)[IlyaSerdyuk](/maintainers/IlyaSerdyuk)

![](https://www.gravatar.com/avatar/b6799b52ae6f737908e1c708afb42abb8e083f5757fcfbd14689862b6d1d386a?d=identicon)[zfbase](/maintainers/zfbase)

---

Top Contributors

[![IlyaSerdyuk](https://avatars.githubusercontent.com/u/3463730?v=4)](https://github.com/IlyaSerdyuk "IlyaSerdyuk (24 commits)")[![dmitrydyomin](https://avatars.githubusercontent.com/u/3259433?v=4)](https://github.com/dmitrydyomin "dmitrydyomin (4 commits)")[![boenrobot](https://avatars.githubusercontent.com/u/1029536?v=4)](https://github.com/boenrobot "boenrobot (1 commits)")

---

Tags

zendtwitterbootstrapformtwitter bootstrapzend-formZF1zend form decorators

### Embed Badge

![Health badge](/badges/zfbase-zend1-bootstrap3/health.svg)

```
[![Health](https://phpackages.com/badges/zfbase-zend1-bootstrap3/health.svg)](https://phpackages.com/packages/zfbase-zend1-bootstrap3)
```

###  Alternatives

[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[tomaj/nette-bootstrap-form

Nette bootstrap form renderer

28440.4k6](/packages/tomaj-nette-bootstrap-form)[cornford/bootstrapper

An easy way to intergrate Twitter Bootstrap with Laravel.

232.7k](/packages/cornford-bootstrapper)[mopa/bootstrap-sandbox-bundle

Seperate live docs from code

256.8k](/packages/mopa-bootstrap-sandbox-bundle)[tomjamon/laravel-custom-html

Custom HTML generator for Laravel (Based on LaravelCollective HTML)

1018.6k](/packages/tomjamon-laravel-custom-html)

PHPackages © 2026

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