PHPackages                             axllent/silverstripe-bootstrap-forms - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. axllent/silverstripe-bootstrap-forms

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

axllent/silverstripe-bootstrap-forms
====================================

An extension to add CSS classes to Silverstripe forms to play nicer with Twitter Bootstrap

2.0.5(1mo ago)454.2k↓58.3%83MITPHP

Since Jul 21Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/axllent/silverstripe-bootstrap-forms)[ Packagist](https://packagist.org/packages/axllent/silverstripe-bootstrap-forms)[ Docs](https://github.com/axllent/silverstripe-bootstrap-forms)[ RSS](/packages/axllent-silverstripe-bootstrap-forms/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (9)Dependencies (2)Versions (11)Used By (3)

Add CSS classes to Silverstripe forms to play nicer with Twitter Bootstrap
==========================================================================

[](#add-css-classes-to-silverstripe-forms-to-play-nicer-with-twitter-bootstrap)

An extension to add CSS classes to Silverstripe forms to "play nicer" with Twitter Bootstrap, mostly by adding the `form-control` bootstrap CSS classes to form elements (input, dropdown, submit etc).

This is designed to be a plug-and-play extension, without requiring you to change your existing forms on your website. This includes all forms such as login forms, password reset forms, as well as any other form you have created.

It extends `FormField` to try provide a transparent "manipulation" of the rendered form fields, adding some bootstrap CSS to the rendered fields. It does not produce [bootstrap-specific html](http://getbootstrap.com/css/#forms) for your forms.

`FormField` unfortunately only has a `$this->extend('onBeforeRender', $this);` in `Field` that allows manipulation of the field itself, and not the parent field\_holder. This allows only a very limited amount of flexibility, and prevents an extension from changing the field\_holder.

Form submit buttons get a `btn btn-primary` class added, and any other buttons get a `btn btn-default` class added.

Forms will still need some additional CSS styling (to set spacing) as the form's field\_holders cannot be modified to the limitations mentioned above.

Features
--------

[](#features)

It adds the `form-control` CSS class to all front-end:

- TextField (and extended classes)
- TextAreaField
- DropdownField

It renders CheckboxSetField &amp; OptionsetField with different field templates (see templates/Forms).

It does **not**:

- Modify field holders (`onBeforeRender()` does not allow that)
- Support FieldGroup (you'll need to use CSS to do that)
- Apply bootstrap-specific CSS classes to form messages

Requirements
------------

[](#requirements)

- Silverstripe ^4 || ^5 || ^6

Installation
------------

[](#installation)

### Install via Composer

[](#install-via-composer)

You can install it via composer with `composer require axllent/silverstripe-bootstrap-forms`

Basic usage
-----------

[](#basic-usage)

Simply install (and flush), add the checkbox CSS to your styles and you're good to go.

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance94

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 92.1% 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 ~450 days

Recently: every ~799 days

Total

9

Last Release

30d ago

Major Versions

1.1.1 → 2.0.02017-06-19

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1463435?v=4)[Ralph Slooten](/maintainers/axllent)[@axllent](https://github.com/axllent)

---

Top Contributors

[![axllent](https://avatars.githubusercontent.com/u/1463435?v=4)](https://github.com/axllent "axllent (35 commits)")[![a2nt](https://avatars.githubusercontent.com/u/672794?v=4)](https://github.com/a2nt "a2nt (1 commits)")[![gherkins](https://avatars.githubusercontent.com/u/824927?v=4)](https://github.com/gherkins "gherkins (1 commits)")[![jsirish](https://avatars.githubusercontent.com/u/1163643?v=4)](https://github.com/jsirish "jsirish (1 commits)")

---

Tags

silverstripebootstrapForms

### Embed Badge

![Health badge](/badges/axllent-silverstripe-bootstrap-forms/health.svg)

```
[![Health](https://phpackages.com/badges/axllent-silverstripe-bootstrap-forms/health.svg)](https://phpackages.com/packages/axllent-silverstripe-bootstrap-forms)
```

###  Alternatives

[silverstripe/userforms

UserForms enables CMS users to create dynamic forms via a drag and drop interface and without getting involved in any PHP code

1371.1M85](/packages/silverstripe-userforms)[unclecheese/display-logic

Allows assignment of conditions for display and hide of specific form fields based on client side behavior.

771.1M114](/packages/unclecheese-display-logic)[symbiote/silverstripe-advancedworkflow

Adds configurable workflow support to the CMS, with a GUI for creating custom workflow definitions.

46302.4k9](/packages/symbiote-silverstripe-advancedworkflow)[silverstripe/multiform

SilverStripe forms with multiple steps, flow control and state persistence

3157.3k3](/packages/silverstripe-multiform)[unclecheese/zen-fields

Syntactic sugar for SilverStripe FieldLists

2920.0k](/packages/unclecheese-zen-fields)

PHPackages © 2026

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