PHPackages                             antonythorpe/silverstripe-formfieldadditionalclasses - 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. antonythorpe/silverstripe-formfieldadditionalclasses

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

antonythorpe/silverstripe-formfieldadditionalclasses
====================================================

Warning: there is an error in this module as it adds classes to all form fields. Abandoned. Through new methods on the FormField, CSS classes can be added to any Field Holder template. That is, to the opening div, Validation span, Middle Column/Description div, and Left/Right label.

02PHP

Since Feb 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/AntonyThorpe/silverstripe-formfieldadditionalclasses)[ Packagist](https://packagist.org/packages/antonythorpe/silverstripe-formfieldadditionalclasses)[ RSS](/packages/antonythorpe-silverstripe-formfieldadditionalclasses/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

silverstripe-formfieldadditionalclasses
=======================================

[](#silverstripe-formfieldadditionalclasses)

Warning: there is an error in this module as it adds classes to all form fields. Abandoned. Through new methods on the FormField, CSS classes can be added to any Field Holder template. That is, to the opening div, Validation span, Middle Column/Description div, and Left/Right label.

[![Build Status](https://camo.githubusercontent.com/fb67609279a5e19f448a4ede9964eb643a0e8c25ec2de1eb0c005fb420d96c57/68747470733a2f2f7472617669732d63692e6f72672f416e746f6e7954686f7270652f73696c7665727374726970652d666f726d6669656c646164646974696f6e616c636c61737365732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/AntonyThorpe/silverstripe-formfieldadditionalclasses)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/eaf6727f63545b7b207a6a4c3b66a1daadddbb6e3a5ab04fd5c650c3f3bde31f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f416e746f6e7954686f7270652f73696c7665727374726970652d666f726d6669656c646164646974696f6e616c636c61737365732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/AntonyThorpe/silverstripe-formfieldadditionalclasses/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/6752524f301d8cc7c296bac511ad8be121b9ea9dede707963d70e6f690aaee32/68747470733a2f2f706f7365722e707567782e6f72672f616e746f6e7974686f7270652f73696c7665727374726970652d666f726d6669656c646164646974696f6e616c636c61737365732f762f737461626c65)](https://packagist.org/packages/antonythorpe/silverstripe-formfieldadditionalclasses)[![Total Downloads](https://camo.githubusercontent.com/d4d3ad503dc55442187e7ce16503759d75dff5942017944b96fef750d15ab716/68747470733a2f2f706f7365722e707567782e6f72672f616e746f6e7974686f7270652f73696c7665727374726970652d666f726d6669656c646164646974696f6e616c636c61737365732f646f776e6c6f616473)](//packagist.org/packages/antonythorpe/silverstripe-formfieldadditionalclasses)[![Latest Unstable Version](https://camo.githubusercontent.com/29216c23a56cc091cf73137cbb9eb6625178a425bd11088b2e6dbbb2056934aa/68747470733a2f2f706f7365722e707567782e6f72672f616e746f6e7974686f7270652f73696c7665727374726970652d666f726d6669656c646164646974696f6e616c636c61737365732f762f756e737461626c65)](https://packagist.org/packages/antonythorpe/silverstripe-formfieldadditionalclasses)[![License](https://camo.githubusercontent.com/16f544a982434bc1fab0b5b766f36b48f3e3cc480c006710ad1b5ad5d15b50c1/68747470733a2f2f706f7365722e707567782e6f72672f616e746f6e7974686f7270652f73696c7665727374726970652d666f726d6669656c646164646974696f6e616c636c61737365732f6c6963656e7365)](https://packagist.org/packages/antonythorpe/silverstripe-formfieldadditionalclasses)

Why use this Silverstripe module?
---------------------------------

[](#why-use-this-silverstripe-module)

For styling of Form Fields

How it works
------------

[](#how-it-works)

Extends the `FormField` class

Example
-------

[](#example)

```
    CheckboxField::create('Example', 'Checkbox Example')
        ->addHolderClass('form-check')
        ->addRightLabelClass('form-check-label')
        ->addExtraClass('form-check-input') // note: existing SilverStripe functionality
        ->addHolderValidationMessageClass('alert alert-danger')
        ->addHolderDescriptionClass('blueday');
```

Would create:

```

        Checkbox Example
        Opps!
        Helpful note to the user

```

Approach of this Module
-----------------------

[](#approach-of-this-module)

The classes in this module mostly apply to the Field Holder template. The central `$Field` remains untouched (the existing SilverStripe function `addExtraClass` can be used to add CSS classes to this). Note: the `addExtraClass` has been removed from the holder templates now that there are new methods to use. In addition, default classes are in place that match the existing classes in the SilverStripe holder templates so there should not be too much carnage when installing this module into an existing project.

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

[](#requirements)

[Silverstripe](http://www.silverstripe.org)

Documentation
-------------

[](#documentation)

[Index](/docs/en/index.md)

Pull Requests are Welcome
-------------------------

[](#pull-requests-are-welcome)

Feel free to send a pull request. Please don't forget the tests!

Support
-------

[](#support)

None sorry.

Change Log
----------

[](#change-log)

[Link](changelog.md)

Contributions
-------------

[](#contributions)

[Link](contributing.md)

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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/cd6026ff6f6d02bf4f4f1f5fe1c3a611dbf1ae6f95e0c3a7993c6520bb1e8e2f?d=identicon)[AntonyThorpe](/maintainers/AntonyThorpe)

---

Top Contributors

[![AntonyThorpe](https://avatars.githubusercontent.com/u/1023740?v=4)](https://github.com/AntonyThorpe "AntonyThorpe (3 commits)")

### Embed Badge

![Health badge](/badges/antonythorpe-silverstripe-formfieldadditionalclasses/health.svg)

```
[![Health](https://phpackages.com/badges/antonythorpe-silverstripe-formfieldadditionalclasses/health.svg)](https://phpackages.com/packages/antonythorpe-silverstripe-formfieldadditionalclasses)
```

###  Alternatives

[vishnubob/wait-for-it

Pure bash script to test and wait on the availability of a TCP host and port

9.8k157.6k3](/packages/vishnubob-wait-for-it)[nodejs-php-fallback/nodejs-php-fallback

Allow you to call node.js module or scripts throught PHP and call a fallback function if node.js is not available

17454.7k8](/packages/nodejs-php-fallback-nodejs-php-fallback)

PHPackages © 2026

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