Download the PHP package setono/sylius-age-verification-plugin without Composer
On this page you can find all versions of the php package setono/sylius-age-verification-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download setono/sylius-age-verification-plugin
More information about setono/sylius-age-verification-plugin
Files in setono/sylius-age-verification-plugin
Package sylius-age-verification-plugin
Short Description Setono example plugin for Sylius.
License MIT
Informations about the package sylius-age-verification-plugin
Age Verification Plugin for Sylius
A plugin to add age verification to your Sylius store using VerifyID as the age verification provider.
During checkout, if the customer's cart contains products with a minimum age requirement and the shipping address is in an enabled country, the plugin prompts the customer to verify their age via VerifyID before completing the order. Supported minimum age thresholds are 16 and 18.
Prerequisites
You need a VerifyID account. From the VerifyID dashboard, obtain your Plugin Key.
Installation
Step 1: Install the plugin
Step 2: Register the bundle
Add the plugin to your config/bundles.php file:
Step 3: Configure environment variables
Add the following environment variable to your .env.local:
Step 4: Import routes
Create config/routes/setono_sylius_age_verification.yaml:
Step 5: Configure the plugin
Create config/packages/setono_sylius_age_verification.yaml:
Step 6: Extend entities
Extend the Customer entity
Register it in your Sylius configuration (e.g. config/packages/_sylius.yaml):
Extend the Product entity
Register it in your Sylius configuration (e.g. config/packages/_sylius.yaml):
Step 7: Update your database schema
Usage
Once installed, an Age verification tab appears on the product edit page in the Sylius admin. Set a minimum age (16 or 18) for any product that requires age verification.
During checkout, if the order contains age-restricted products and the shipping address is in one of the configured enabled_countries, the customer will be prompted to verify their age via VerifyID before they can complete the order. Once verified, the result is stored on the customer entity and reused for future orders.
All versions of sylius-age-verification-plugin with dependencies
doctrine/orm Version ^2.0 || ^3.0
doctrine/persistence Version ^3.4
setono/doctrine-orm-trait Version ^1.2
sylius/admin-bundle Version ^1.0
sylius/channel Version ^1.0
sylius/core Version ^1.0
sylius/core-bundle Version ^1.0
sylius/order Version ^1.0
sylius/product-bundle Version ^1.0
symfony/config Version ^6.4
symfony/dependency-injection Version ^6.4
symfony/event-dispatcher Version ^6.4
symfony/form Version ^6.4
symfony/http-client-contracts Version ^3.4
symfony/http-foundation Version ^6.4
symfony/http-kernel Version ^6.4
symfony/routing Version ^6.4
symfony/uid Version ^6.4
twig/twig Version ^2.0 || ^3.0
webmozart/assert Version ^1.11