Download the PHP package devsrealm/csskiller-plugin-mail-contract without Composer

On this page you can find all versions of the php package devsrealm/csskiller-plugin-mail-contract. 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 csskiller-plugin-mail-contract

CSS Killer Mail Contract Plugin

A secure email-based terms acceptance plugin for CSS Killer CMS. This plugin provides a complete solution for collecting user consent through email verification, with built-in token management, audit trails, and automated cleanup.

Features

Requirements

Installation

  1. Install via Composer:

  2. Enable the plugin in your CSS Killer CMS admin panel

  3. Configure your email settings in the CMS configuration

Usage

Basic Terms Acceptance Flow

  1. Display Terms Form: Direct users to /terms to show the acceptance form
  2. Submit Email: User enters their email and submits the form
  3. Email Confirmation: System sends a secure confirmation link via email
  4. Confirm Acceptance: User clicks the link to confirm their acceptance
  5. Success Page: User sees confirmation of successful acceptance

API Endpoints

The plugin provides the following REST endpoints under the /terms route:

GET /terms

Displays the terms acceptance form.

POST /terms/submit

Submits the terms acceptance request.

Request Body:

Response:

GET /terms/confirm?token=<token>

Confirms the terms acceptance using the token from the email link.

GET /terms/status?email=<email>

Retrieves the status of tokens for a given email address.

Response:

Console Commands

Cleanup Expired Tokens

Remove expired pending tokens while preserving confirmed tokens for audit purposes:

This command:

Programmatic Usage

Using the TokenSignatureService

Configuration

Environment Variables

No additional environment variables are required beyond standard CSS Killer CMS configuration.

Email Configuration

The plugin uses PHP's built-in mail() function by default. For production use, you should configure a proper email service in your CMS settings.

Token Settings

Security Features

Templates

The plugin includes the following templates (located in src/templates/):

Templates use the CSS Killer CMS template system and can be customized by overriding them in your theme.

Database Storage

Tokens are stored in the system_global table with:

Compliance & GDPR

Development

Project Structure

Extending the Plugin

Custom Email Templates

Override the email sending in TermsAcceptanceController::sendConfirmationEmail() to use your preferred email service.

Additional Metadata

Pass additional metadata when generating tokens:

Custom Validation

Extend the controller to add custom validation logic before token generation.

License

This plugin is licensed under the GNU Affero General Public License v3.0.

Support

For support and contributions, please contact the maintainer or create an issue in the project repository.

Changelog

Version 1.0.0


All versions of csskiller-plugin-mail-contract with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
devsrealm/csskiller-cms Version *
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 devsrealm/csskiller-plugin-mail-contract contains the following files

Loading the files please wait ...