PHPackages                             marketo/silverstripe-textfieldtrimmer - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. marketo/silverstripe-textfieldtrimmer

AbandonedArchivedSilverstripe-module[Validation &amp; Sanitization](/categories/validation)

marketo/silverstripe-textfieldtrimmer
=====================================

Add this SilverStripe extension to any DataObject to automatically trim() every text (ie, HTMLText, Text, VarChar) field before data is saved to the database.

33.2k1PHP

Since Feb 22Pushed 10y ago6 watchersCompare

[ Source](https://github.com/Marketo/SilverStripe-TextFieldTrimmer)[ Packagist](https://packagist.org/packages/marketo/silverstripe-textfieldtrimmer)[ RSS](/packages/marketo-silverstripe-textfieldtrimmer/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

TextFieldTrimmer-for-SilverStripe
=================================

[](#textfieldtrimmer-for-silverstripe)

Description
===========

[](#description)

Add this SilverStripe extension to any DataObject to automatically `trim()` every text (ie, HTMLText, Text, VarChar) field before data is saved to the database.

\#Installation

1. copy the 'textfieldtrimmer' folder to the document root
2. rebuild the manifest using /dev/build/?flush=all
3. in the project code: on any DataObject that needs text fields trimmed, indicate that the DataObject is an 'extension' of TextFieldTrimmer, for example:

```
class Category extends DataObject {

	static $extensions = array(
		'TextFieldTrimmer',
	);
    ...
}
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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/e22e3bdb69c4e26df2afd309aa0e13d4366b29bf0446db5bba58866f8ab9985c?d=identicon)[nathanbrauer](/maintainers/nathanbrauer)

![](https://avatars.githubusercontent.com/u/22066381?v=4)[Marketing Dev](/maintainers/marketingdev)[@MarketingDev](https://github.com/MarketingDev)

![](https://avatars.githubusercontent.com/u/17607967?v=4)[Jason Slavin](/maintainers/JasonHowellSlavin)[@JasonHowellSlavin](https://github.com/JasonHowellSlavin)

---

Top Contributors

[![stevevu](https://avatars.githubusercontent.com/u/1194531?v=4)](https://github.com/stevevu "stevevu (5 commits)")[![Neumes](https://avatars.githubusercontent.com/u/8358226?v=4)](https://github.com/Neumes "Neumes (2 commits)")

### Embed Badge

![Health badge](/badges/marketo-silverstripe-textfieldtrimmer/health.svg)

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

###  Alternatives

[chaoswey/taiwan-id-validator

台灣身分證、統一編號驗證

319.9k](/packages/chaoswey-taiwan-id-validator)

PHPackages © 2026

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