PHPackages                             statikbe/craft-flexmail - 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. statikbe/craft-flexmail

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

statikbe/craft-flexmail
=======================

Flexmail integration for Craft CMS

5.0.2(7mo ago)1190[1 issues](https://github.com/statikbe/craft-flexmail/issues)MITPHP

Since Nov 30Pushed 5mo ago6 watchersCompare

[ Source](https://github.com/statikbe/craft-flexmail)[ Packagist](https://packagist.org/packages/statikbe/craft-flexmail)[ RSS](/packages/statikbe-craft-flexmail/feed)WikiDiscussions develop Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (22)Used By (0)

Flexmail for Craft CMS
======================

[](#flexmail-for-craft-cms)

This plugin integrates the [Flexmail REST API](https://api.flexmail.eu/documentation/#overview) into Craft CMS. The first version will focus on adding contacts, and assigning preferences &amp; interests.

Requirements
------------

[](#requirements)

- Craft CMS 5.0.0 or later

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

[](#installation)

To install the plugin, follow these instructions:

```
cd /path/to/project
composer require statikbe/craft-flexmail
./craft  plugin/install flexmail
```

Settings
--------

[](#settings)

The plugin has the following settings:

- API username (`apiUsername`)
- API token (`apiToken`)
- Default contact source (`defaultSource`) (read more about Flexmail sources [here](https://en.support.flexmail.eu/article/291-about-sources))

The default contact source can be set in settings, or you can set in template using a hidden `source` field.

Usage
-----

[](#usage)

By default, a contact in Flexmail has the following fields ([API docs](flexmail)):

- Email (required)
- First name
- Last name
- Language (required)

### Basic subscribe form

[](#basic-subscribe-form)

```

    {{ actionInput('flexmail/contacts/add') }}
    {{ csrfInput() }}

        E-mail

        First name

        Last name

```

### Subscribe form with custom fields

[](#subscribe-form-with-custom-fields)

Flexmail custom fields can be added in the `fields` namespace. For example `fields[city]`, where "city" is the handle of the custom field in Flexmail.

```

    {{ actionInput('flexmail/contacts/add') }}
    {{ csrfInput() }}

        E-mail

        Your organisation

```

### Subscribe form with interests

[](#subscribe-form-with-interests)

To segment or add metadata to contacts in Flexmail use `interests[]`.

It's important to note that the values for these need to be **the ID of that item in Flexmail**.

> **Note:** The older `labels[]` and `preferences[]` fields are deprecated as of v3.0.0 and should not be used. Please use `interests[]` instead.

```

        {{ actionInput('flexmail/contacts/add') }}
        {{ csrfInput() }}

            E-mail

        // Interests

```

Interests can be imported and refresh from the API through a Utility.

Fields
------

[](#fields)

The plugin includes fields for interests that are defined in your Flexmail account.

The idea here is that you can create an interest for contacts that subscribe from a specific page/product/etc.

This field will use the imported interests.

Helpers
-------

[](#helpers)

Flexmail uses ID's for most things (sources, labels, preferences) but those ID's are not exposed in the webpages.

You can use these console command to list each of these, they will return all items with their ID and label

```
flexmail/debug/get-interest
flexmail/debug/get-sources

```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance49

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.5% 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 ~91 days

Recently: every ~35 days

Total

17

Last Release

210d ago

Major Versions

1.0.5 → 2.0.0-beta.12022-03-15

1.0.6 → 2.0.02022-09-30

2.0.1 → 3.0.02022-12-23

3.1.0 → v4.x-dev2025-07-08

3.1.1 → 5.0.02025-11-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/1250437446b84017407f7f1900194b1e1c93fcf34b332ba382fb77f69b251cb6?d=identicon)[statikbe](/maintainers/statikbe)

---

Top Contributors

[![janhenckens](https://avatars.githubusercontent.com/u/755428?v=4)](https://github.com/janhenckens "janhenckens (50 commits)")[![HannahDeWachter](https://avatars.githubusercontent.com/u/55497252?v=4)](https://github.com/HannahDeWachter "HannahDeWachter (14 commits)")[![Numkil](https://avatars.githubusercontent.com/u/5604686?v=4)](https://github.com/Numkil "Numkil (5 commits)")

---

Tags

cmsCraftcraftcmscraft-pluginflexmail

### Embed Badge

![Health badge](/badges/statikbe-craft-flexmail/health.svg)

```
[![Health](https://phpackages.com/badges/statikbe-craft-flexmail/health.svg)](https://phpackages.com/packages/statikbe-craft-flexmail)
```

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

100387.6k57](/packages/verbb-formie)[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.5M51](/packages/nystudio107-craft-seomatic)[verbb/navigation

Create navigation menus for your site.

92698.4k18](/packages/verbb-navigation)[verbb/field-manager

Manage your fields and field groups with ease.

195612.2k10](/packages/verbb-field-manager)[verbb/workflow

Enforce multi-step review processes for creating entries.

138123.0k1](/packages/verbb-workflow)[verbb/comments

Add comments to your site.

13753.7k](/packages/verbb-comments)

PHPackages © 2026

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