PHPackages                             cgoit/contao-leads-optin-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. cgoit/contao-leads-optin-bundle

ActiveContao-bundle[Utility &amp; Helpers](/categories/utility)

cgoit/contao-leads-optin-bundle
===============================

Opt-In functions for the contao-leads extension

4.1.2(1mo ago)01.5k↓50%1LGPL-3.0+PHPPHP ^8.2CI passing

Since Mar 22Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/cgoIT/contao-leads-optin-bundle)[ Packagist](https://packagist.org/packages/cgoit/contao-leads-optin-bundle)[ Docs](https://cgo-it.de)[ GitHub Sponsors](https://github.com/cgoIT)[ Fund](https://ko-fi.com/cgoit)[ RSS](/packages/cgoit-contao-leads-optin-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (34)Versions (24)Used By (0)

Contao Leads-OptIn Bundle
=========================

[](#contao-leads-optin-bundle)

[![Latest Version on Packagist](https://camo.githubusercontent.com/411ece792bf1f84243b1d86d1fa87d48fe958392485b95a90e0af201d5c61e91/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63676f69742f636f6e74616f2d6c656164732d6f7074696e2d62756e646c652e7376673f7374796c653d666c6174)](https://packagist.org/packages/cgoit/contao-leads-optin-bundle)[![Dynamic JSON Badge](https://camo.githubusercontent.com/530e249f8c472af273036f0f4a673fb20906e21d70593ebdbaaec78df93748e6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64796e616d69632f6a736f6e3f75726c3d68747470732533412532462532467261772e67697468756275736572636f6e74656e742e636f6d25324663676f4954253246636f6e74616f2d6c656164732d6f7074696e2d62756e646c652532466d61696e253246636f6d706f7365722e6a736f6e2671756572793d2532342e72657175697265253542253232636f6e74616f253246636f72652d62756e646c65253232253544266c6162656c3d436f6e74616f25323056657273696f6e)](https://camo.githubusercontent.com/530e249f8c472af273036f0f4a673fb20906e21d70593ebdbaaec78df93748e6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64796e616d69632f6a736f6e3f75726c3d68747470732533412532462532467261772e67697468756275736572636f6e74656e742e636f6d25324663676f4954253246636f6e74616f2d6c656164732d6f7074696e2d62756e646c652532466d61696e253246636f6d706f7365722e6a736f6e2671756572793d2532342e72657175697265253542253232636f6e74616f253246636f72652d62756e646c65253232253544266c6162656c3d436f6e74616f25323056657273696f6e)[![Installations via composer per month](https://camo.githubusercontent.com/d59d01ab668d85acdb27e2e396fb4a8b2a01205d9973d86f665080d9749af2a6/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f63676f69742f636f6e74616f2d6c656164732d6f7074696e2d62756e646c652e7376673f7374796c653d666c6174)](https://packagist.org/packages/cgoit/contao-leads-optin-bundle)[![Installations via composer total](https://camo.githubusercontent.com/7fcca5a6fbbb3836dae45411e53ff8033d57564f5d7f3d2cd15a33a8ae3eebf0/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63676f69742f636f6e74616f2d6c656164732d6f7074696e2d62756e646c652e7376673f7374796c653d666c6174)](https://packagist.org/packages/cgoit/contao-leads-optin-bundle)

***This is a fork from [cboelter/contao-lead-option](https://github.com/cboelter/contao-leads-optin). This fork supports notification\_center 2.x and leads 3.x.***

Most of the work for Version 2.X was done by [Sebastian Zoglowek](https://github.com/zoglo) thanks for this!

This Extension provides double opt-in functions for the [Contao-Leads](https://github.com/terminal42/contao-leads) extension.

Setup
-----

[](#setup)

Setup is currently only possible by composer or the contao manager. Just require or search for `cgoit/contao-leads-optin-bundle` and install it.

Configuration
-------------

[](#configuration)

#### Notifications

[](#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".

[![Notification list](docs/screenshot-notification-list.png)](docs/screenshot-notification-list.png)

1. Anfragen speichern: OptIn

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

`lead_*, formconfig_*, admin_email, raw_data, optin_token, optin_url`

The token `lead_*` can use every form form like this way: `lead_email`. The token `formconfig_*` can use every form config like this way: `formconfig_id`.

[![Notification](docs/screenshot-notification.png)](docs/screenshot-notification.png)

2. Anfragen speichern: OptIn Bestätigung

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

`lead_*, formconfig_*, admin_email`

The token `lead_*` can use every form field like this way: `lead_email`. The token `formconfig_*` can use every form config like this way: `formconfig_id`.

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

[![Notification Success](docs/screenshot-notification-success.png)](docs/screenshot-notification-success.png)

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

#### Form configuration

[](#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 notification you have created in the first step, select the ip tracking or not and finally choose a redirect page for the OptIn-Link.

[![Form configuration](docs/screenshot-form-configuration.png)](docs/screenshot-form-configuration.png)

*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

[](#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 successful 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 success 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.

[![Module verification configuration](docs/screenshot-optin-verification.png)](docs/screenshot-optin-verification.png)

#### Export

[](#export)

This extension provides a custom exporter for the opt in. In the export configuration you can see a new export types prefixed with "OptIn".

[![Export configuration Types](docs/screenshot-optin-export-types.png)](docs/screenshot-optin-export-types.png)

They provide 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.

##### Filtering the export

[](#filtering-the-export)

If you want to filter the export to only include leads where the opt-in process is completly done, you can use the filter condition with a value of `_optin_tstamp > 0`.

[![Export filter configuration](docs/screenshot-optin-export-filter.png)](docs/screenshot-optin-export-filter.png)

#### Leads list

[](#leads-list)

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

[![Export configuration](docs/screenshot-optin-export.png)](docs/screenshot-optin-export.png)

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!).

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance79

Regular maintenance activity

Popularity20

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 52.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~35 days

Recently: every ~72 days

Total

22

Last Release

46d ago

Major Versions

3.2.0 → 4.0.02025-06-13

PHP version history (4 changes)3.0.0PHP ^8.1 || ^8.2 || ^8.3

3.1.4PHP ^8.1 || ^8.2 || ^8.3 || ^8.4

3.2.0PHP ^8.1

4.0.1PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d593eb65a20bf8aa0034a97016bdde26047857dd221ce07d8fd3f084c103b46?d=identicon)[cgo-it](/maintainers/cgo-it)

---

Top Contributors

[![cgoIT](https://avatars.githubusercontent.com/u/8972203?v=4)](https://github.com/cgoIT "cgoIT (80 commits)")[![cboelter](https://avatars.githubusercontent.com/u/550207?v=4)](https://github.com/cboelter "cboelter (36 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (21 commits)")[![bildschirmartist](https://avatars.githubusercontent.com/u/2776658?v=4)](https://github.com/bildschirmartist "bildschirmartist (13 commits)")[![davidmaack](https://avatars.githubusercontent.com/u/988290?v=4)](https://github.com/davidmaack "davidmaack (1 commits)")[![fritzmg](https://avatars.githubusercontent.com/u/4970961?v=4)](https://github.com/fritzmg "fritzmg (1 commits)")[![zoglo](https://avatars.githubusercontent.com/u/55794780?v=4)](https://github.com/zoglo "zoglo (1 commits)")

---

Tags

contaoleadscontao leads optinoptinnotification\_center

### Embed Badge

![Health badge](/badges/cgoit-contao-leads-optin-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/cgoit-contao-leads-optin-bundle/health.svg)](https://phpackages.com/packages/cgoit-contao-leads-optin-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3183.3k6](/packages/codefog-contao-news-categories)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
