PHPackages                             roshyo/age-verification-plugin - 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. roshyo/age-verification-plugin

ActiveSylius-plugin

roshyo/age-verification-plugin
==============================

Provides a way to check customers age in Sylius.

1.0.0(7y ago)1232MITPHPPHP ^7.1

Since Jun 1Pushed 5y agoCompare

[ Source](https://github.com/Roshyo/SyliusAgeVerificationPlugin)[ Packagist](https://packagist.org/packages/roshyo/age-verification-plugin)[ RSS](/packages/roshyo-age-verification-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (18)Versions (2)Used By (0)

SyliusAgeVerificationPlugin
===========================

[](#syliusageverificationplugin)

Provides a way to check customers age in Sylius.

Installation-procedure
======================

[](#installation-procedure)

```
$ composer require behappy/age-verification-plugin
```

Enable the plugin
-----------------

[](#enable-the-plugin)

```
// in app/AppKernel.php
public function registerBundles() {
	$bundles = array(
		// ...
		new \BeHappy\SyliusAgeVerificationPlugin\BeHappySyliusAgeVerificationPlugin(),
	);
	// ...
}
```

```
#in app/config/config.yml
imports:
    ...
    - { resource: "@BeHappySyliusAgeVerificationPlugin/Resources/config/app/config.yml" }
```

Front office
------------

[](#front-office)

You'll now need to override registration form since the age isn't required by default by Sylius. To do so :

```
{# /app/Resources/SyliusShopBundle/views/Register/_form.html.twig #}
{{ 'sylius.ui.personal_information'|trans }}

    {{ form_row(form.firstName) }}
    {{ form_row(form.lastName) }}

    {{ form_row(form.email) }}
    {{ form_row(form.birthday) }}

{{ form_row(form.phoneNumber) }}
{{ form_row(form.subscribedToNewsletter) }}
{{ 'sylius.ui.account_credentials'|trans }}
{{ form_row(form.user.plainPassword.first) }}
{{ form_row(form.user.plainPassword.second) }}
```

This is an example, adapt it to your needs.

That's it !
===========

[](#thats-it-)

Now, everytime a customer will try to registrate, the birthday will be required, and must be over 18 (default)

Same for creating a customer in the BackOffice.

Configuration
=============

[](#configuration)

You can redefine the required age by overriding this parameter :

```
# in app/config.yml
parameters:
    ...
    be_happy.age_verification.minimal_age: 21
    ...
```

Feel free to contribute
=======================

[](#feel-free-to-contribute)

You can also ask your questions at the mail address in the composer.json mentioning this package.

Other
=====

[](#other)

You can also check our other packages (including Sylius plugins) at

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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

2899d ago

### Community

Maintainers

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

---

Top Contributors

[![Roshyo](https://avatars.githubusercontent.com/u/9363039?v=4)](https://github.com/Roshyo "Roshyo (9 commits)")[![SteadEXE](https://avatars.githubusercontent.com/u/1759156?v=4)](https://github.com/SteadEXE "SteadEXE (1 commits)")

###  Code Quality

TestsPHPUnit

Code StyleECS

### Embed Badge

![Health badge](/badges/roshyo-age-verification-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/roshyo-age-verification-plugin/health.svg)](https://phpackages.com/packages/roshyo-age-verification-plugin)
```

###  Alternatives

[bitbag/cms-plugin

CMS plugin for Sylius applications.

2461.1M5](/packages/bitbag-cms-plugin)[bitbag/elasticsearch-plugin

BitBag Elasticsearch plugin for Sylius.

133482.7k](/packages/bitbag-elasticsearch-plugin)[sylius/invoicing-plugin

Invoicing plugin for Sylius.

901.0M2](/packages/sylius-invoicing-plugin)[sylius/refund-plugin

Plugin provides basic refunds functionality for Sylius application.

691.7M13](/packages/sylius-refund-plugin)[stefandoorn/sitemap-plugin

Sitemap Plugin for Sylius

851.0M](/packages/stefandoorn-sitemap-plugin)[sylius/paypal-plugin

PayPal plugin for Sylius.

451.4M4](/packages/sylius-paypal-plugin)

PHPackages © 2026

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