PHPackages                             pr3set-llc/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. pr3set-llc/silverstripe-bootstrap-forms

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

pr3set-llc/silverstripe-bootstrap-forms
=======================================

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

067PHP

Since Oct 11Pushed 8mo agoCompare

[ Source](https://github.com/PR3SET-LLC/silverstripe-bootstrap-forms)[ Packagist](https://packagist.org/packages/pr3set-llc/silverstripe-bootstrap-forms)[ RSS](/packages/pr3set-llc-silverstripe-bootstrap-forms/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

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

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

19

—

LowBetter than 9% of packages

Maintenance42

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 88.9% 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://avatars.githubusercontent.com/u/118060730?v=4)[pr3set](/maintainers/pr3set)[@pr3set](https://github.com/pr3set)

---

Top Contributors

[![axllent](https://avatars.githubusercontent.com/u/1463435?v=4)](https://github.com/axllent "axllent (32 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)")[![juangadiel-pr3set](https://avatars.githubusercontent.com/u/231773882?v=4)](https://github.com/juangadiel-pr3set "juangadiel-pr3set (1 commits)")

### Embed Badge

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

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

###  Alternatives

[devletes/filament-progress-bar

Reusable progress bar components for Filament 5 tables and infolists.

104.5k](/packages/devletes-filament-progress-bar)

PHPackages © 2026

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