PHPackages                             moosylvania/silverstripe-age-gate - 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. moosylvania/silverstripe-age-gate

ActiveSilverstripe-vendormodule

moosylvania/silverstripe-age-gate
=================================

Age Gate module for SilverStripe.

2.1.0(8y ago)11042[1 PRs](https://github.com/Moosylvania/SilverStripe-Age-Gate/pulls)MITPHP

Since May 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Moosylvania/SilverStripe-Age-Gate)[ Packagist](https://packagist.org/packages/moosylvania/silverstripe-age-gate)[ RSS](/packages/moosylvania-silverstripe-age-gate/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (2)Versions (8)Used By (0)

SilverStripe Age Gate
=====================

[](#silverstripe-age-gate)

Simple Age Gate module for SilverStripe, ensures that users entering site are 21+.

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

[](#requirements)

- SilverStripe 4.0.0+, for 3.x checkout 3.x branch

Installation &amp; Documentation
--------------------------------

[](#installation--documentation)

1. Clone Repository to your SilverStripe Project or -

    ```
     composer require moosylvania/silverstripe-age-gate

    ```
2. This will add a route /age-gate to your project and all users will be presented with a yes/no button to validate of age. If you would like the user to type in their date of birth you can set the config option of 'askForAge'

    ```
     Moosylvania\AgeGate\Controllers\AgeGateController:
       askForAge: true

    ```

    To set the format of the dates you can change the config values 'dateFormat' (for the form intro text) and 'dateFieldFormat' for the actual SilverStripe Date Field.

    ```
     Moosylvania\AgeGate\Controllers\AgeGateController:
       dateFormat: 'm/d/Y'
       dateFieldFormat: 'MM/dd/yyyy'

    ```
3. You can set up where you want a user redirected to if they select 'No' (not of age) by adding the following config value to your site -

    ```
     Moosylvania\AgeGate\Controllers\AgeGateController:
       notOfAgeRedirect: 'https://moosylvania.com'

    ```
4. You can also setup how old someone needs to be to enter your site (default is 21 by editing the setting)

Moosylvania\\AgeGate\\Controllers\\AgeGateController: yearsOld: 21

5. Run a dev/build?flush=1 and your site will now be agegated.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity68

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 ~1 days

Total

7

Last Release

2926d ago

Major Versions

1.1.0 → 2.0.02018-05-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b58123837a8364d4ff51b9e31f46aecac3667a74a12e01a061a5c75484668f4?d=identicon)[obj63mc](/maintainers/obj63mc)

---

Top Contributors

[![obj63mc](https://avatars.githubusercontent.com/u/443120?v=4)](https://github.com/obj63mc "obj63mc (20 commits)")

---

Tags

age-gatephpsilverstripesilverstripeageagegate

### Embed Badge

![Health badge](/badges/moosylvania-silverstripe-age-gate/health.svg)

```
[![Health](https://phpackages.com/badges/moosylvania-silverstripe-age-gate/health.svg)](https://phpackages.com/packages/moosylvania-silverstripe-age-gate)
```

###  Alternatives

[silverstripe-terraformers/gridfield-rich-filter-header

Rich filter header component for GridField

1325.7k1](/packages/silverstripe-terraformers-gridfield-rich-filter-header)

PHPackages © 2026

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