PHPackages                             cubenl/silverstripe-validation - 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. cubenl/silverstripe-validation

ActiveSilverstripe-vendormodule[Validation &amp; Sanitization](/categories/validation)

cubenl/silverstripe-validation
==============================

Validation module for SilverStripe

3.0.0(3mo ago)211.9k↓43.8%BSD-3-ClausePHPPHP &gt;=8.3

Since Nov 19Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/cubenl/silverstripe-validation)[ Packagist](https://packagist.org/packages/cubenl/silverstripe-validation)[ Docs](https://github.com/cubenl/silverstripe-validation)[ RSS](/packages/cubenl-silverstripe-validation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (8)Used By (0)

SilverStripe Validation
=======================

[](#silverstripe-validation)

[![Build Status](https://camo.githubusercontent.com/e6b786df29e2f43203c0a2f3805eb9d723821e5a7e8f602216b86974e14e0695/68747470733a2f2f7472617669732d63692e6f72672f637562656e6c2f73696c7665727374726970652d76616c69646174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/cubenl/silverstripe-validation)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/45665c954811116942a918dbe5a2546fb6ae2a189b8209fe9af6ccfab4dbbb25/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f637562656e6c2f73696c7665727374726970652d76616c69646174696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/cubenl/silverstripe-validation/?branch=master)[![Build Status](https://camo.githubusercontent.com/98cb68a0deb5fb4ff6cef4b062058773e7166cabba06b25969a7e9bbe8fd8c7a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f637562656e6c2f73696c7665727374726970652d76616c69646174696f6e2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/cubenl/silverstripe-validation/build-status/master)[![codecov.io](https://camo.githubusercontent.com/e53627b57f692c2fe0231560e9b9c3e11fb0b07325611e3147bb279dd02beb34/68747470733a2f2f636f6465636f762e696f2f6769746875622f637562656e6c2f73696c7665727374726970652d76616c69646174696f6e2f636f7665726167652e7376673f6272616e63683d6d6173746572)](https://codecov.io/github/cubenl/silverstripe-validation?branch=master)

[![GitHub Code Size](https://camo.githubusercontent.com/bb49cc1986819155b3d1ca611ef8fda5d4a414d94bdd22d05b262ae4f97f0948/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f637562656e6c2f73696c7665727374726970652d76616c69646174696f6e)](https://github.com/cubenl/silverstripe-validation)[![GitHub Last Commit](https://camo.githubusercontent.com/f2fc5e3bf23d9df7951ddf25a01132e93c27f5bcb858249a7612157b68da7e62/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f637562656e6c2f73696c7665727374726970652d76616c69646174696f6e)](https://github.com/cubenl/silverstripe-validation)[![GitHub Issues](https://camo.githubusercontent.com/462834e557016ff1a0bf8d6b3137e9ebdf2e84b5768d1153c6727410c46c7100/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f637562656e6c2f73696c7665727374726970652d76616c69646174696f6e)](https://github.com/cubenl/silverstripe-validation/issues)

SilverStripe module for out of the box validating DataObjects and more!
Inspired by the `Illuminate\Validation` Laravel way of defining validation rules.

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

[](#requirements)

- SilverStripe Framework 4.0+

Quick Start
-----------

[](#quick-start)

### Installation

[](#installation)

```
composer require cubenl/silverstripe-validation

```

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

[](#documentation)

- [Validating DataObjects](./docs/en/dataobjects.md)
- [Available Validation Rules](./docs/en/available-validation-rules)
- [Custom Validation Rules](./docs/en/custom-validation-rules)
- [Custom Error Messages](./docs/en/custom-error-messages.md)
- [Translations](./docs/en/translations.md)

Versioning
----------

[](#versioning)

This library follows [Semver](http://semver.org). According to Semver, you will be able to upgrade to any minor or patch version of this library without any breaking changes to the public API. Semver also requires that we clearly define the public API for this library.

All methods, with `public` visibility, are part of the public API. All other methods are not part of the public API. Where possible, we'll try to keep `protected` methods backwards-compatible in minor/patch versions, but if you're overriding methods then please test your work before upgrading.

Reporting Issues
----------------

[](#reporting-issues)

Please [create an issue](http://github.com/cube-nl/silverstripe-validation/issues) for any bugs you've found, or features you're missing.

Contributing
------------

[](#contributing)

Please see [contributing](./CONTRIBUTING.md) for some guidelines to contribute.

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance82

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity73

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~478 days

Total

5

Last Release

91d ago

Major Versions

1.2.0 → 2.0.02023-05-16

2.0.0 → 3.0.02026-02-17

PHP version history (4 changes)1.0.0PHP &gt;=7.1.0

1.1.0PHP &gt;=7.2.0

2.0.0PHP &gt;=8.1

3.0.0PHP &gt;=8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/c26a4fe9c11109caa4190768376fb2237b0c4d853217274e87adbcdc251d70a4?d=identicon)[TomOudeRengerink](/maintainers/TomOudeRengerink)

---

Top Contributors

[![remi-cube](https://avatars.githubusercontent.com/u/74704886?v=4)](https://github.com/remi-cube "remi-cube (1 commits)")

---

Tags

silverstripesilverstripe-4silverstripe-modulevalidating-dataobjectsvalidationvalidationsilverstripevalidatefields

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/cubenl-silverstripe-validation/health.svg)

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

###  Alternatives

[wixel/gump

A fast, extensible &amp; stand-alone PHP input validation class that allows you to validate any data.

1.2k1.3M30](/packages/wixel-gump)[sadegh19b/laravel-persian-validation

A comprehensive Laravel validation package for Persian text, numbers, dates, and Iranian national identifiers

18293.8k1](/packages/sadegh19b-laravel-persian-validation)[sheadawson/silverstripe-zenvalidator

Faster, easier client and server-side form validation for SilverStripe

5778.4k2](/packages/sheadawson-silverstripe-zenvalidator)[awurth/slim-validation

A wrapper around the respect/validation PHP validation library for easier error handling and display

65378.4k9](/packages/awurth-slim-validation)[czim/laravel-dataobject

Basic validatable standardized data object.

11137.7k7](/packages/czim-laravel-dataobject)

PHPackages © 2026

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