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

ActiveCraft-plugin

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

Flexmail integration for Craft CMS

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

Since Nov 30Pushed 3mo 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 1mo 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

37

—

LowBetter than 83% of packages

Maintenance56

Moderate activity, may be stable

Popularity13

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

165d 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

[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.4M46](/packages/nystudio107-craft-seomatic)[verbb/image-resizer

Resize assets when they are uploaded.

127269.1k7](/packages/verbb-image-resizer)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[wrav/oembed

A simple plugin to extract media information from websites, like youtube videos, twitter statuses or blog articles.

36205.0k3](/packages/wrav-oembed)[verbb/hyper

A user-friendly links field for Craft.

24130.9k9](/packages/verbb-hyper)

PHPackages © 2026

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