statamic-rad-pack/campaign-monitor

Subscribe registrations or contact forms to Campaign Monitor

v1.0.1 2023-09-15 14:17 UTC

This package is auto-updated.

Last update: 2024-02-02 12:01:53 UTC


README

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. Don't forget to add the consent field to your blueprint.

Configuration in the Control Panel:

control panel

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.