Download the PHP package cboelter/contao-lead-optin without Composer

On this page you can find all versions of the php package cboelter/contao-lead-optin. 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 contao-lead-optin

Contao Lead-OptIn

Latest Version on Packagist Installations via composer per month Installations via composer total

Most of the work for Version 2.X was done by Sebastian Zoglowek thanks for this!

This Extension provides double opt-in functions for the Contao-Leads extension.

Setup

Setup is currently only possible by composer or the contao manager. Just require or search for and install it.

Configuration

Notifications

The extension knows two different types of notifications. One is the notification sent to the user, if he submits the form. This contains the optin link and additional informations. It is called "Anfragen speichern: OptIn". The second one is a notification which is sent, if a user successfully clicked on the opt in link. It is called "Anfragen speichern: OptIn Bestätigung".

  1. Anfragen speichern: OptIn

This notification can use the following simple tokens to send nofications to the user:

The token can use every form form like this way: . The token can use every form config like this way: .

  1. Anfragen speichern: OptIn Bestätigung

This notification can use the following simple tokens to send nofications to the user:

The token can use every form field like this way: . The token can use every form config like this way: .

It is not mandatory and can be used e.g for notify the admin about a new registration.

General note: The known simpletoken ##form*## will not work in this extension, you need to use ##lead*## instead.

Form configuration

To use the module, there must be a contao form. Create the form and the form field inside the contao form manager. This extension is an addon for the leads extension. So you need to enable this inside the form you want to use the extension.

You have to enable the "Anfragen speichern" checkbox inside the form configuration. After enabling the checkbox, you will see the base configuration for leads and another checkbox "Anfragen speicher OptIn". You have to setup the base configuration, then you can enable the opt in. Simply choose a notifaction you have created in the first step, select the ip tracking or not and finally choose a redirect page for the OptIn-Link.

General note: You have to enable the email field to be stored by leads, if it is not enable, the extension will not work

OptIn-Page / Handling module

To get the extension working you have to create a new frontend module of the type "OptIn Verarbeitung".

In this module you can define a note for the successfull optin and a note for an optin with errors. The module automatically decides which text it will show to the user. As a third configuration you can select a sucess notification (see notifications section).

Include this module on the page, you have selected in form configuration as the "OptIn Zielseite". The opt in will now work.

Export

This extension provides a custom exporter for the opt in. In the export configuration you can see a new export type called "OptIn-Export CSV (.csv)". It provides a custom data collector and exporter to export all needed data for the optin. You only need to select this exporter and give it a name.

The people icon in the backend list of leads shows you the opt in state -> green means opt in is done -> grey means opt in is not done right now.

This is it ... you can now use the extension. If you think you have found a bug, feel free to open a github issue or a pull request :-) Thanks!

This documentation is sponsored by Stefan Senn (Thanks for that!).


All versions of contao-lead-optin with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
contao/core-bundle Version ^4.9
codefog/contao-haste Version ^4.25
terminal42/contao-leads Version ~1.4
terminal42/notification_center Version ~1.4
ext-mbstring 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 cboelter/contao-lead-optin contains the following files

Loading the files please wait ....