定制 statamic-rad-pack/campaign-monitor 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

statamic-rad-pack/campaign-monitor

Composer 安装命令:

composer require statamic-rad-pack/campaign-monitor

包简介

Subscribe registrations or contact forms to Campaign Monitor

README 文档

README

Manage Campaign Monitor newsletters in Statamic

Latest Version

This package provides an easy way to integrate Campaign Monitor with Statamic forms and user registrations.

Requirements

  • PHP 8.1+
  • Statamic v4

Installation

You can install this package via composer using:

composer require statamic-rad-pack/campaign-monitor

The package will automatically register itself.

Configuration

Set your Campaign Monitor API Key and Client ID in your .env file. Instructions on how to find these can be found here.

CAMPAIGNMONITOR_API_KEY=your-api-key-here
CAMPAIGNMONITOR_CLIENT_ID=your-client-id-here

Publish the config file to config/campaign-monitor.php run:

php artisan vendor:publish --tag="campaign-monitor-config"

Usage

Create your Statamic forms as usual. When editing the form you'll see a "Campaign Monitor Integration" section where you can configure if and how that form integrates with Campaign Monitor.

Don't forget to add the consent field to your blueprint.

You can also manage if new users are added a list using the dedicated settings view in the control panel.

Configuration in the Control Panel:

control panel

Data storage

Any user related settings are stored by default in resources/campaign_monitor.yaml.

If you want to change this or use a different data store, you can bind \StatamicRadPack\Mailchimp\UserConfig::class in your app service provider. You should modify the getSavedSettings, save, and exists methods according to your requirements.

Testing

Run the tests with:

vendor/bin/phpunit

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

Please see SECURITY for details.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-09-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固