PHPackages                             nblum/silverstripe-customizableinputfield - 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. nblum/silverstripe-customizableinputfield

AbandonedArchivedSilverstripe-module

nblum/silverstripe-customizableinputfield
=========================================

SilverStripe form field for customizable input formats

3201[2 PRs](https://github.com/nblum/silverstripe-customizableinputfield/pulls)PHP

Since Dec 8Pushed 9y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

silverstripe-customizableinputfield
===================================

[](#silverstripe-customizableinputfield)

---

This package is deprecated. There will be no features or bug fixes in future.

---

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

[](#requirements)

- Silverstripe 3.\*

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

[](#installation)

### Composer

[](#composer)

- `composer require "nblum/silverstripe-customizableinputfield"`

### Manual

[](#manual)

- Download and copy module in SilverStripe root directory

Usage
-----

[](#usage)

### Adding fields on a page

[](#adding-fields-on-a-page)

```
    private static $db = array(
        'Field' => 'CustomizableInputField'
    );
```

Example for mail address with pre defined domain:

\_\_\_\_\_\_\_\_\_ @example.com

```

    //creates a new fieldset
    $field = new CustomizableInputFieldSet('Field', 'Email address');

    //creates a new part
    $part1 = new CustomizableInputFieldPart();
    $part1->setAfter('@example.com');
    $part1->setMaxLength(15);
    $field->addPart($part1);

    //adds the customized fieldset to the tab
    $fields->addFieldToTab('Root.Main', $field, 'Content');

```

Example for (german) mobile phone numbers:

+49 (0) \_\_\_ / \_\_\_\_\_\_\_\_\_

```

    //creates a new fieldset
    $field = new CustomizableInputFieldSet('Field', 'Mobile Phone');

    //creates a new part
    $part1 = new CustomizableInputFieldPart();
    //the first param will be visible in admin form, the second in the template
    $part1->setBefore('+49', '+49 (0)');
    $part1->setAfter('/');
    $part1->setMaxLength(3);
    $field->addPart($part1);

    //creates a second part
    $part2 = new CustomizableInputFieldPart();
    $part2->setMaxLength(9);
    $field->addPart($part2);

    //adds the customized fieldset to the tab
    $fields->addFieldToTab('Root.Main', $field, 'Content');

```

### Render values on a template

[](#render-values-on-a-template)

```

    $Field1.Strval

            $Before $Value $After

```

###  Health Score

22

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/ca7a06d9f914820cdf4c8837b2090dd478888f3f1efa89a5afdfc41257f7a0b5?d=identicon)[nblum](/maintainers/nblum)

---

Top Contributors

[![nblum](https://avatars.githubusercontent.com/u/7358767?v=4)](https://github.com/nblum "nblum (14 commits)")

### Embed Badge

![Health badge](/badges/nblum-silverstripe-customizableinputfield/health.svg)

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

PHPackages © 2026

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