PHPackages                             littlegiant/silverstripe-config-validator - 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. littlegiant/silverstripe-config-validator

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

littlegiant/silverstripe-config-validator
=========================================

Build time configuration validation for SilverStripe framework.

1.0(7y ago)41281MITPHP

Since Jul 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/littlegiant/silverstripe-config-validator)[ Packagist](https://packagist.org/packages/littlegiant/silverstripe-config-validator)[ RSS](/packages/littlegiant-silverstripe-config-validator/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

SilverStripe Config Validator
=============================

[](#silverstripe-config-validator)

A module for validating SilverStripe configuration at build time.

[![Screenshot of config validation failure screen](https://camo.githubusercontent.com/0986b3ffe99b7b8f8afc1eaef256bea31c9990a680a3040ebdae34de34c05122/68747470733a2f2f692e696d6775722e636f6d2f3652336d5a674d2e706e67)](https://camo.githubusercontent.com/0986b3ffe99b7b8f8afc1eaef256bea31c9990a680a3040ebdae34de34c05122/68747470733a2f2f692e696d6775722e636f6d2f3652336d5a674d2e706e67)

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

[](#installation)

Require via composer and run `/dev/build?flush=all`. This is a zero-configuration installation.

`composer require littlegiant/silverstripe-config-validator`

Validating configuration
------------------------

[](#validating-configuration)

Configuration is validated by implementing the `OwnConfigValidator` or `ClassConfigValidator` interfaces.

If class `MyClass` validates configuration of itself, it should implement `OwnConfigValidator`.

If class `MyClass` validates configuration of one or more other classes (e.g. `MyOtherClass`), it should implement `ClassConfigValidator` and its `getConfigValidatedClasses()` method should return an array containing `MyOtherClass::class`. This is a good way to incrementally add validation to configuration for vendor-provided (e.g. core / module) classes without having to submit changes to those packages.

The implementation of these interfaces is **not** exclusive (i.e. a class can implement both interfaces and it will validate itself and the other classes.)

Configuration is validated by adding any errors via `ClassConfigValidationResult::addError()`. If any config validation fails, `/dev/build` will abort before database building, displaying all config validation errors to be corrected.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

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

Unknown

Total

1

Last Release

2889d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1953220?v=4)[Stevie Mayhew](/maintainers/stevie-mayhew)[@stevie-mayhew](https://github.com/stevie-mayhew)

![](https://www.gravatar.com/avatar/13a1b78f31cdad3eecbe5d11aadc3f5c527f76cde37710ab91dc03c42565f152?d=identicon)[RyanPotter](/maintainers/RyanPotter)

---

Top Contributors

[![hchokshi](https://avatars.githubusercontent.com/u/10136407?v=4)](https://github.com/hchokshi "hchokshi (7 commits)")

### Embed Badge

![Health badge](/badges/littlegiant-silverstripe-config-validator/health.svg)

```
[![Health](https://phpackages.com/badges/littlegiant-silverstripe-config-validator/health.svg)](https://phpackages.com/packages/littlegiant-silverstripe-config-validator)
```

###  Alternatives

[undefinedoffset/silverstripe-nocaptcha

A spam protector and form field using Google's reCAPTCHA v2 or optionally a foundation v3 implementation

31485.4k20](/packages/undefinedoffset-silverstripe-nocaptcha)[sheadawson/silverstripe-zenvalidator

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

5680.5k2](/packages/sheadawson-silverstripe-zenvalidator)[jonom/silverstripe-text-target-length

Set character length recommendations on SilverStripe text form fields

30136.5k11](/packages/jonom-silverstripe-text-target-length)

PHPackages © 2026

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