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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sylius-age-verification-plugin

Age Verification Plugin for Sylius

Latest Version Build Status Code Coverage Mutation testing

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

PHP Build Version
Package Version
Requires php Version >=8.1
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package setono/sylius-age-verification-plugin contains the following files

Loading the files please wait ...