承接 thomasvantuycom/statamic-brevo 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thomasvantuycom/statamic-brevo

Composer 安装命令:

composer require thomasvantuycom/statamic-brevo

包简介

Create Brevo contacts from Statamic form submissions.

README 文档

README

Create Brevo contacts from Statamic form submissions.

This addon adds a Brevo configuration section to Statamic forms. When a configured form is submitted, the addon can create or update a Brevo contact, add the contact to one or more lists, map Statamic form fields to Brevo contact attributes, and optionally require an opt-in field or Brevo double opt-in flow.

Requirements

  • Statamic 6.0.0 or above
  • A Brevo API key

Installation

Install the addon with Composer:

composer require thomasvantuycom/statamic-brevo

Add your Brevo API key to your environment:

BREVO_API_KEY=your-api-key

Usage

Open a form in the Statamic control panel. The addon adds a Brevo section to the form configuration.

Enable Create Contacts, then configure:

  • Lists: the Brevo lists the contact should be added to.
  • Email Field: the Statamic form field containing the contact email address.
  • Attribute Fields: optional mappings from Statamic form fields to Brevo contact attributes.
  • Opt-in Field: optional field that must evaluate to true before a contact is created.

When the form is submitted, the addon sends the contact to Brevo. Existing contacts are updated by using Brevo's updateEnabled option.

Attribute Mapping

Use Attribute Fields to map submitted form values to Brevo contact attributes.

For example:

Form field Brevo attribute
first_name FIRSTNAME
last_name LASTNAME

Attributes are optional. If no attributes are configured, the contact is still created with the selected lists and email address.

Opt-in Field

If an Opt-in Field is configured, the addon checks the submitted value before creating the contact.

If the value is false, empty, or otherwise not considered truthy, no Brevo request is sent. Leave the opt-in field blank when consent is handled outside this form or is not required for the form.

Double Opt-in

Enable Use Double Opt-in to use Brevo's double opt-in contact flow instead of creating the contact immediately.

When double opt-in is enabled, configure:

  • Template: the Brevo double opt-in template to send.
  • Redirection URL: where the contact should be redirected after confirming.

The selected template must be a valid Brevo double opt-in template.

License

MIT

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固