Skip to content

studiobonito/silverstripe-mailchimp

Repository files navigation

MailChimp Module

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Overview

Provide MailChimp integration for SilverStripe CMS.

Requirements

  • SilverStripe 3.1 or newer.

Install

Via Composer

$ composer require studiobonito/silverstripe-mailchimp

Manually

Copy the 'silverstripe-mailchimp' folder to the root of your SilverStripe installation.

Usage

The module provides the ability to create a form that updates a MailChimp mailing list.

The module needs a MailChimp API and List ID. To add these, fill the relevant fields in the CMS found in the tab at Settings > Services > Mail Chimp.

To initliase the form, do so as you would usually in a Controller, but use MailChimpFilm class:

public function MailChimpForm()
{
    return = new MailChimpForm($this, 'MailChimpForm');
}

Don't forget to add the correct action in the allowed action variable. In our example we would need to add:

private static $allowed_actions = array(
    'MailChimpForm'
);

You can then use $MailChimpForm in your template.

Testing

$ phpunit

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The BSD-2-Clause License. Please see License File for more information.

About

SilverStripe Mailchimp Module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages