PHPackages                             wieni/wmsubscription - 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. wieni/wmsubscription

ActiveDrupal-module

wieni/wmsubscription
====================

Provides a common interface for managing email marketing platform subscriptions in Drupal 8

1.5.0(6mo ago)01.3k↓100%2[3 issues](https://github.com/wieni/wmsubscription/issues)2MITPHPPHP &gt;=7.1.0CI failing

Since Mar 23Pushed 4mo ago7 watchersCompare

[ Source](https://github.com/wieni/wmsubscription)[ Packagist](https://packagist.org/packages/wieni/wmsubscription)[ RSS](/packages/wieni-wmsubscription/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (9)Used By (2)

wmsubscription
==============

[](#wmsubscription)

[![Latest Stable Version](https://camo.githubusercontent.com/d7499e55be5eff534c97fb8e889330c22289e94e99ea199a0c4bde69ef26eaeb/68747470733a2f2f706f7365722e707567782e6f72672f7769656e692f776d737562736372697074696f6e2f762f737461626c65)](https://packagist.org/packages/wieni/wmsubscription)[![Total Downloads](https://camo.githubusercontent.com/6970ff44792acaa481a4632e67ec4733592ff6d679ee2632f1f578540874881c/68747470733a2f2f706f7365722e707567782e6f72672f7769656e692f776d737562736372697074696f6e2f646f776e6c6f616473)](https://packagist.org/packages/wieni/wmsubscription)[![License](https://camo.githubusercontent.com/7cf08af945ed7e63187384039fe61f0621575454791aece212ecc46558005a94/68747470733a2f2f706f7365722e707567782e6f72672f7769656e692f776d737562736372697074696f6e2f6c6963656e7365)](https://packagist.org/packages/wieni/wmsubscription)

> Provides a common interface for managing email marketing platform subscriptions.

Why?
----

[](#why)

- **Easily create newsletter subscription forms** tailored to your project, but without the boilerplate
- **Platform-agnostic API** which makes it possible to easily switch between providers and to share even more code between projects.

Installation
------------

[](#installation)

This package requires PHP 7.1 and Drupal 8 or higher. It can be installed using Composer:

```
 composer require wieni/wmsubscription
```

How does it work?
-----------------

[](#how-does-it-work)

### Choosing a provider

[](#choosing-a-provider)

Aside from the core package, you'll also need to install a provider module:

- `wmsubscription_mailchimp`, provides a [MailChimp](https://mailchimp.com) implementation
- `wmsubscription_campaignmonitor`, provides a [Campaign Monitor](https://www.campaignmonitor.com) implementation

After installing a provider module, change the `tool` key in the `wmsubscription.settings` config.

### Choosing between direct or queued subscriptions

[](#choosing-between-direct-or-queued-subscriptions)

When calling external API's, it's often a good idea to queue operations so that in case of connection problems, no operations are lost.

By default, subscriptions are handled immediately after calling [`SubscriptionToolInterface::addSubscriber`](src/SubscriptionToolInterface.php). This behaviour can be changed by setting the `manager` key to `wmsubscription.manager.queued`. Operations will be added to a queue, so make sure cron is executed regularly.

To make sure visitors cannot subscribe the same email address while the previous operation is still in queue, this module provides a custom queue database implementation checking for duplicates. To enable the custom implementation, add the following snippet to your `settings.php`:

```
$settings['queue_service_wmsubscription_subscriptions'] = 'wmsubscription.queue.unique_subscription';
```

### Dead Letter Queue integration

[](#dead-letter-queue-integration)

This module provides a submodule that can be used to combine the functionality of the [Dead Letter Queue module](https://github.com/wieni/dead_letter_queue) with the unique subscription queue: `wmsubscription_dead_letter_queue`.

To enable this feature, use the following snippet in your `settings.php` instead of the one mentioned above:

```
$settings['queue_service_wmsubscription_subscriptions'] = 'wmsubscription_dead_letter_queue.queue.database';
```

To add support for the Dead Letter Queue UI module as well, enable the `wmsubscription_dead_letter_queue_ui` module.

Changelog
---------

[](#changelog)

All notable changes to this project will be documented in the [CHANGELOG](CHANGELOG.md) file.

Security
--------

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

Distributed under the MIT License. See the [LICENSE](LICENSE) file for more information.

###  Health Score

44

—

FairBetter than 91% of packages

Maintenance77

Regular maintenance activity

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 67.9% 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 ~339 days

Recently: every ~465 days

Total

7

Last Release

200d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/734199ae17f8da336fef9ba81f7c37cda09b0f9a952f551235c32ecfad68488b?d=identicon)[Wieni](/maintainers/Wieni)

---

Top Contributors

[![DieterHolvoet](https://avatars.githubusercontent.com/u/3606531?v=4)](https://github.com/DieterHolvoet "DieterHolvoet (19 commits)")[![akasake](https://avatars.githubusercontent.com/u/32063989?v=4)](https://github.com/akasake "akasake (9 commits)")

---

Tags

drupal-8drupal-moduledrupal8-modulemarketing-automationmarketing-tools

### Embed Badge

![Health badge](/badges/wieni-wmsubscription/health.svg)

```
[![Health](https://phpackages.com/badges/wieni-wmsubscription/health.svg)](https://phpackages.com/packages/wieni-wmsubscription)
```

###  Alternatives

[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6939.5M340](/packages/drupal-core-recommended)

PHPackages © 2026

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