PHPackages                             swordfox/campaign-monitor-userform - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. swordfox/campaign-monitor-userform

ActiveSilverstripe-vendormodule[Mail &amp; Notifications](/categories/mail)

swordfox/campaign-monitor-userform
==================================

Custom Userform Field which integrates with Campaign Monitor

2.0.1(11mo ago)042PHP

Since Jul 22Pushed 11mo agoCompare

[ Source](https://github.com/swordfox/campaign-monitor-userform)[ Packagist](https://packagist.org/packages/swordfox/campaign-monitor-userform)[ Docs](https://github.com/swordfox/campaign-monitor-userform)[ RSS](/packages/swordfox-campaign-monitor-userform/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (3)Used By (0)

Campaign Monitor UserForm Field
===============================

[](#campaign-monitor-userform-field)

Adds a custom field to UserForms which allows you to select a list from campaign monitor, set custom fields and subscribe on submission.

Thank to [mylesthedev](https://github.com/mylesthedev) for the original [SilverStripe 3 version](https://github.com/mylesthedev/campaign-monitor-userform).

### Installation

[](#installation)

Via composer

```
composer require swordfox/campaign-monitor-userform

```

##### Configuration

[](#configuration)

To connect to your campaign monitor field you will need to set two fields in your campaign-monitor-userform.yml.

```
Swordfox\UserForms\EditableCampaignMonitorField:
    api_key: 'API KEY GOES HERE'
    client_id: 'CLIENT ID GOES HERE'

```

^ These setting can be found in client settings area in Campaign Monitor.

##### Customisation

[](#customisation)

You can also change what type of field is actually used on the UserForm. By Default it's a checkbox field. You can change this via your config.yml OR via the CMS per form. If you choose to use a DropdownField you can add options under the Custom Options tab.

```
Swordfox\UserForms\EditableCampaignMonitorField:
    defaultFieldType: 'DropdownField'

```

##### Adding Custom Fields

[](#adding-custom-fields)

You can integrate your campaigns custom fields with the fields on your form. To do so you must name the field(s) with the prefix 'customfields\_', so for example if your custom field was called `interests` then the field name on your form must be named `customfield_interests`. The module will automatically push all fields to Campaign Monitor if there's a match. Note: there are a few caveats here e.g. you have to ensure if a field is required then it needs to be required at both ends.

##### Extensions

[](#extensions)

There are a few extension hooks which can be useful to handle data before and after saving throughout the process.

- `$this->extend('beforeValueFromData', $data)`
- `$this->extend('afterValueFromData', $data)`
- `$this->extend('updateLists', $data)`
- `$this->extend('updateCustomFields', $custom_fields)`

[![Field configuration example](https://camo.githubusercontent.com/07f4d5944ea3e1f4f5dfd5db57ffd751d0f5208742c29a3101e2ef2df7e5986e/68747470733a2f2f692e696d6775722e636f6d2f4d6971723050712e706e67)](https://camo.githubusercontent.com/07f4d5944ea3e1f4f5dfd5db57ffd751d0f5208742c29a3101e2ef2df7e5986e/68747470733a2f2f692e696d6775722e636f6d2f4d6971723050712e706e67)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance51

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

347d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/549500?v=4)[Swordfox](/maintainers/swordfox)[@swordfox](https://github.com/swordfox)

---

Top Contributors

[![swordfox](https://avatars.githubusercontent.com/u/549500?v=4)](https://github.com/swordfox "swordfox (4 commits)")

---

Tags

emailsilverstripecampaignuserformsmonitorCampaign Monitoruserform

### Embed Badge

![Health badge](/badges/swordfox-campaign-monitor-userform/health.svg)

```
[![Health](https://phpackages.com/badges/swordfox-campaign-monitor-userform/health.svg)](https://phpackages.com/packages/swordfox-campaign-monitor-userform)
```

###  Alternatives

[silverstripe/userforms

UserForms enables CMS users to create dynamic forms via a drag and drop interface and without getting involved in any PHP code

1371.1M85](/packages/silverstripe-userforms)[symbiote/silverstripe-advancedworkflow

Adds configurable workflow support to the CMS, with a GUI for creating custom workflow definitions.

46302.4k9](/packages/symbiote-silverstripe-advancedworkflow)[markguinn/silverstripe-email-helpers

Silverstripe extension containing SMTP mailer class and some other classes for HTML emails

3145.7k1](/packages/markguinn-silverstripe-email-helpers)[camfindlay/apes

The Automated Provision of Email Services (APES) module will allow you to set up an automated sync mechanism between the SilverStripe Member DataObject and MailChimp.

122.6k](/packages/camfindlay-apes)

PHPackages © 2026

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