Download the PHP package solution25/age-checker without Composer

On this page you can find all versions of the php package solution25/age-checker. 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 age-checker

Packagist Version Packagist Downloads License: MIT

AgeChecker

Introduction

The AgeChecker plugin helps merchants enforce age verification on their Shopware 6 storefronts. By integrating with an external age verification service, it ensures that customers meet age requirements before proceeding to checkout.

This tool is especially useful for businesses selling age-restricted products, providing a configurable and user-friendly verification layer that integrates seamlessly with Shopware's sales channels.

Key Features

  1. Sales Channel Integration
    • Add API keys per sales channel for flexible configuration.
  2. Age Verification Options
    • Customers can verify their age by entering their date of birth.
  3. Retry Management
    • Users have 3 attempts by default to verify their age.
  4. Temporary Denial Logic
    • Block users temporarily after 3 failed attempts.
  5. Admin Panel Configuration
    • Easily manage settings from the Shopware admin panel.

Compatibility

Get Started

Installation & Activation

  1. Download

    Git

    • Clone the Plugin Repository:
    • Open your terminal and run the following command in your Shopware 6 custom plugins directory (usually located at custom/plugins/):

Packagist

  1. Install the Plugin in Shopware 6
    • Log in to your Shopware 6 Administration panel.
    • Navigate to Extensions > My Extensions.
    • Locate the newly cloned plugin and click Install.
  2. Activate the Plugin
    • After installation, click Activate or toggle the plugin to activate it
  3. Verify Installation
    • After activation, you will see AgeChecker in the list of installed plugins.
    • The plugin name, version, and installation date should appear as shown in the screenshot below.

img1


Plugin Configuration

  1. Access Plugin Settings

    • Go to Settings > System > Plugins.
    • Locate AgeChecker and click the three dots (...) icon or the plugin name to open its settings.
  2. API Key Setup

img2

  1. Save Configuration
    • Click Save in the top-right corner to store your settings.

How It Works

  1. User Initiates Checkout
  1. Verification Attempt

img3

img4

img5

  1. Temporary Denial Logic
    • Denied users are blocked for 24 hours before they can try again.

Age Checker Plugin - API Documentation

This document describes the API endpoint for the Age Checker Plugin for Shopware 6. The plugin integrates with AgeChecker.net to verify a customer’s age and stores the result in the customer’s custom fields.


Update Customer Age Verification Status

Endpoint
POST /age-checker-user-status

Description

Updates the custom_age_confirmed_ custom field for a logged-in customer based on the age verification result received from the AgeChecker.net service.

System Checks

Request Headers

Note: The sw-context-token must be obtained via the Shopware Store API authentication process or created automatically in a Storefront session.

Example Request Body

Successful Response

Example Error Response


Troubleshooting

Verify Functionality

FAQ


All versions of age-checker with dependencies

PHP Build Version
Package Version
Requires shopware/core Version ~6.6.0
shopware/storefront Version ^6.6
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 solution25/age-checker contains the following files

Loading the files please wait ....